Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.9.3, 5.10.0
-
Component/s: Widgets: Styles, Widgets: Widgets and Dialogs
-
Labels:None
-
Commits:1e75dcf2518e37a7b83d006a4e002f972615b43b (5.10.1) b5221dff520efa3bb923c4faeeeb5712f7724a87 (5.9.6)
Description
When application palette is changed at runtime (rather than at startup), the palette changes are not propagated correctly to all widgets. For example `QSpinBox`, `QComboBox` and `QTreeView` and maybe some others are not correctly updated, while most widgets are updated fine.
See https://stackoverflow.com/questions/47971350/change-application-palette-run-time-without-restarting-the-application for source code to replicate this wrong behaviour. Observed on Windows 10, but I expect the same on other platforms.
For example I started the application with 'dark' fusion theme:
https://i.stack.imgur.com/YPLlI.png
But when I switch the palette to standard fusion 'light' scheme at run-time I get this:
https://i.stack.imgur.com/Rdp08.png