background color for certain items(rows) in QFileSystemModel QTreeView
-
29-09-2019 - |
Question
How do i set a custom background color for certain rows in a QFileSystemModel applied on a QTreeView?
Solution
you can use setData method and Qt::BackgroundColorRole to achieve that. This should work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow