Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.6.0
-
None
-
Windows 7 x64 SP1
Description
Since Qt 5.6.0, at least under Windows 7 with Windows Basic Theme activated, the ListView theming sometimes appears graphically broken. In our application, this breaks at random points during execution but I manage to reproduce the problem by changing Theme from the Windows Control Panel.
To reproduce the problem, run the Simple Tree Example from qtbase\widgets\itemviews\simpletreemodel with the Windows Basic Theme active. The list appears with little triangles when children are present (PE_IndicatorBranch) and some blue hightlighting on selected items. Change to Windows Classic Them, still working (of course wih different aspect). Change back to Windows Basic and it will appear broken: branch indicators are boxes with +/- instead of little triangles and selection is not a blue transparent background anymore.
Only exiting the program and running it again will fix the theme rendering.
Tried to debug a little, it appears the uxtheme.dll methods are still called but are somewhat not working correctly.
It worked correctly with both Qt 4.8.6 and Qt 5.5.1. The problem occured with Qt 5.6.0 and it still present in Qt 5.7.0 alpha.
Attachments
Issue Links
- duplicates
-
QTBUG-52230 The style of the QTreeView component get's screwed up
-
- Closed
-