Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130480

Windows 11 Style does not change the palette before QEvent::PaletteChange

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7, 6.8.0
    • GUI: Look'n'Feel
    • None
    • Windows

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            wladimir.leuschner Wladimir Leuschner
            tumic Martin Tůma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes