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

Global application palette is not reset after calling QApplication::setStyle()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: 5.4.2, 5.7.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      How to reproduce:

      • Be on a system where the default style doesn't work well with palettes (macOS, mostly)
      • Set a custom palette and the style to Fusion.
      • Set the style back to the native one.

      You are stuck with the custom palette. Trying to save the original palette from the style used on start leads to ugly brown dialog windows. There is no way to reset the palette back to system default.

      This is in direct contradiction with the documentation:
      http://doc.qt.io/qt-5/qapplication.html#setStyle

      When switching application styles, the color palette is set back to the initial colors or the system defaults. This is necessary since certain styles have to adapt the color palette to be fully style-guide compliant

        Attachments

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              peterix Petr Mrazek
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes