Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7, 6.8.0
-
None
Description
The new Windows 11 style does not change the QWidget::palette() before a QWidget::changeEvent() QEvent::PaletteChange event. This leads to "half light/half dark" applications when the Windows 11 desktop theme is switched between dark/light.
For reproducing the issue use GPXSee - open the attached GPX file and then switch the Windows desktop theme. The graph QGraphicsView gets the old palette in the QWidget::changeEvent() callback with the Windows 11 style. When the application is launched after the theme change, the palette is correct as it is with the Fusion style (or the KDE style on Linux) even after the switch.