开发者

background color for certain items(rows) in QFileSystemModel QTreeView

开发者 https://www.devze.com 2023-01-19 22:06 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消