background color for certain items(rows) in QFileSystemModel QTreeView
How do i set开发者_JAVA技巧 a custom background color for certain rows in a QFileSystemModel applied on a QTreeView?
you can use setData method and Qt::BackgroundColorRole to achieve that. This should work.
精彩评论