How to make treeview like Property Window in QtDesigner ? That is like one treeview with 4 root ? Every root (QObject, QWidget, QDialog, Layout) have a color different.
How to make treeview like Property Window in QtDesigner ? That is like one treeview with 4 root ? Every root (QObject, QWidget, QDialog, Layout) have a color different.
That is normal QTreeView with delegates.
Have a look at QStyledItemDelegate and QItemDelegate.
Ok, thanks for your reply.
But actually I have no idea how to reimplement paint for my Delegate, oh yes I try use QStyledItemDelegate.
I want replace alternate row color in treeview with yellow and make a border-bottom for every row. I have make this with stylesheet and success. But with stylesheet I can't use QBackgroundRole in my model anymore.
Bookmarks