Yes, see the ::item sub control
You probably need names or another property to differentiate between the root item and a child item.
Yes, see the ::item sub control
You probably need names or another property to differentiate between the root item and a child item.
Hi tbscope,
I'm currently using ::item, but it sets stylesheet to all items and this is not a solution. Can you explain me what property I should use.
QStandardItem has no setObjectName method, so I can't use it to differentiate the items.
Thanks.
You can set a custom type for example.
And read this:
http://doc.qt.nokia.com/4.7/styleshe...mic-properties
I'm afraid, that QStandardItem has no setProperty() and setObjectName() methods?
Hmm, it's indeed not a qobject.
Well, then you'll need to create your own style.
Try a custom proxy style.
I'm sorry for my ignorance, but what is a custom proxy style? (I've searched thru the forum and couldn't find it, can you post any reference if it exists?)
I'm having the same problem that originated this post.
lmoran (7th December 2010)
Bookmarks