[Qt-interest] Custom TreeWidget Items - css
Willy P
willy.lists at gmail.com
Tue Jul 28 10:26:42 CEST 2009
I'd like to design a tree widget with custom appearances at each
level. Much like how Qt Designer categorizes / separates items w/
custom cells. I've started learning about css and QStyleSheets and
I'm getting pretty comfortable making global changes.
But I don't know the CSS syntax to customize a particular level of a tree.
I imagine I'd have to make new classes like "RootLevelItem" and
"MidLevelItem" and "LeafItem" who inherit from QTreeWidgetItem. Will
I be able to reference them through the css sheet?
Thanks in advance.
-Willy
More information about the Qt-interest-old
mailing list