Unsolved Give background colour to QHeaderView?
-
I create a
QTreeWidgetItem
and add it as the root-level item toTTreeWidget
, which is a subclass ofQTreeWidget
. To give it a background in a way that hinders the users ability to usesetStyleSheet()
I can just useQTreeWidgetItem->setBackground()
.How can I give the widget a background that still allows the use of
setStyleSheet()
? I've tried targetting the table header via qss in so many ways and nothing is sticking. -
Hi,
What about clearing the background when the user sets a non empty stylesheet ?
-
How can a stylesheet target the background?
If the stylesheet doesn't target the headers background, then the colour will simply lost and that's a bug. I need to re-add the colour back in via stylesheet.
-