Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.12.2, 5.13.0
Description
If a user is setting color for QTreeWidgetItem using QTreeWidgetItem::setForeground() for some column and user have a stylesheet where different color is specified for QTreeWidget:: item, it is expected that foreground color should take priority but stylesheet is overriding the color settings.
Please find a sample attached and you can see that
setStyleSheet("QTreeWidget::item {color: red;border: 1px solid black;}");
item->setForeground(COLUMN_NAME, QBrush(QColor(Qt::blue)));
But the end result is everything is in red color
Attachments
Issue Links
- duplicates
-
QTBUG-70100 When a model has a BackgroundRole set for some data then this should be respected even in the case of a stylesheet
- Closed