Is there a reason why Qt does not allow us to have access to defined stylesheets? In my QStyledItemDelegate I would like to query for certain CSS style definitions to know which icon to draw and in which color based on the items content/state.
I think a workaround would be to create a QWidget on the fly and set its "class" property so that it gets assigned styles from CSS and then using this widgets style() to paint in my QStyledItemDelegate. Something like QStyledItemDelegate::style()->getBorderColor() would be nice. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest