![](/img/trans.png)
[英]Loop through all items with desired file extension on QTreeView + QFileSystemModel
[英]background color for certain items(rows) in QFileSystemModel QTreeView
如何在QTreeView上应用的QFileSystemModel中为某些行设置自定义背景色?
您可以使用setData方法和Qt :: BackgroundColorRole来实现。 这应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.