[Qt-interest] Style sheet selector for QTreeView::item based on item role
Volker
volker at openbios.org
Thu May 27 19:42:14 CEST 2010
Hi everyone.
Is there a way to define a style-rule for a item based on a ItemDataRole?
Im looking for s.t. like a style rule selector which selects items based on
anything which can be application controlled.
What i'm trying to archive is to give particular items a different look in a
QTreeView depending on item properties expressed by data()+ItemDataRole.
I know that that this can be done by using e.g. BackgroundRole or even by
subclassing ItemDelegate. But i like to stick to style sheets.
Regards
......Volker
More information about the Qt-interest-old
mailing list