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

Stylesheets and dark/light mode handling

    XMLWordPrintable

Details

    • Windows

    Description

      An application that sets a Stylesheet and switches at runtime between dark/light mode does not update all palette entries correctly for the new scheme. This is even the case if the whole stylesheet is commented out, which should result in the default palette. Clearing the stylesheet with `setStyleSheet("");` at runtime sets the palette entries back to the expected values. Fusion style seems to be more affected by this than Windows11 style. An example project is attached.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            wladimir.leuschner Wladimir Leuschner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes