Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.8.5, 5.2.0
-
None
-
96c27eb710a37780e79e09df2ebce1d5e4922c9d
Description
When setting QTreeWidgetItem font/foreground color with QTreeWidgetItem::foreground() and reverting it back to defaults with QTreeWidgetItem::foreground(columnId, QBrush()) the text color is always black even if it should be gray when the item is 'disabled'.
Reverting back to default values doesn't seem to be a documented feature, but it works for 'enabled' items, and the same QBrush() trick works for QTreeWidgetItem::background().
The attached example demonstrates the problem.
Attachments
Issue Links
- is duplicated by
-
QTBUG-76423 Feature Request: No way to revert the background color of headerItems of TableWidget to default depending on style used
- Closed