Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.3, 5.10.0
-
None
-
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
Attachments
Issue Links
- relates to
-
QTBUG-110963 Q Designer: inactive QPalette color values not stored correctly
- Closed
For Gerrit Dashboard: QTBUG-65475 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
215456,3 | QStyleHelper: Always add the palette to the pixmap key | 5.10 | qt/qtbase | Status: ABANDONED | -1 | 0 |
215789,3 | QStyleHelper: Use palette cache key in pixmap key | 5.10 | qt/qtbase | Status: MERGED | +2 | 0 |
234871,2 | QStyleHelper: Use palette cache key in pixmap key | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |
383916,4 | Don't change resolve mask when setting brush doesn't change palette | dev | qt/qtbase | Status: MERGED | +2 | 0 |
384669,2 | Don't change resolve mask when setting brush doesn't change palette | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |