qfilesystemmodel中某些项目(行)的背景颜色qtreeview
-
29-09-2019 - |
题
如何在应用于QTREEVIEW上应用的QFileSystemModel中的某些行设置自定义背景颜色?
解决方案
您可以使用setData方法和qt ::背景colorrole来实现这一目标。这应该起作用。
不隶属于 StackOverflow
题
如何在应用于QTREEVIEW上应用的QFileSystemModel中的某些行设置自定义背景颜色?
解决方案
您可以使用setData方法和qt ::背景colorrole来实现这一目标。这应该起作用。