Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.0.1
-
None
-
This project was compiled under 4.6, 4.8 and 5.0.1 on both Windows and Mac. The bug is persistent across all versions.
Description
This is a bug where stylesheet propertiers are not respected for selected items. I have tested this with QListWidget.
The problem is simple, as soon as QListWidget::item is styled in any way in a stylesheet, the itemview starts to behaving inappropriately, and the font color is always set to white, even if the font color was not styled, as in the attached code, only the background is styled.
Now I assume that there is some kind of bug, if the item has a custom style and it is selected something goes haywire. This can be fixed, but the fix is very tedious, as you would have to either subclass QListWidget or connect a slot in every class you use the itemview, and implement a custom palette rule that behaves like the default class' palette should behave if styled properly.
Attached as solution.txt.