I'm not sure what the limitations are with styling a Treeview.I don't think you can do that with just styling. But you can subclass QTreeView and provide your own painting and a custom delegate for items.
Basically, what i need to know is how (with a stylesheet, i'm not a dev) i can style the first item, and how i can style the subitems. If i know the selectors (something that in my experience with Qt so far is sometimes really hard to find out, even with the documents), I can experiment a bit.
-edit-
So far i know you have to use
QTreeWidget:item{ .. } to change the style of ALL the items in the Treeview, but the first level item and the 2nd level item needs to be different. Also, i need to draw the whole item, including the icon area....




Reply With Quote



Bookmarks