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

QML Fusion style ignores dark theme on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2
    • None
    • macOS, Windows

    Description

      I'm using Qt 6.4.2 on macOS 13.2.1. To repro,

      • load the 6.4.2 QML Layouts example,
      • in main.cpp, add "QQuickStyle::setStyle("Fusion");" and "#include <QQuickStyle>"
      • in CMakeLists.txt add QuickControls2
      • Compile and run. The app style is now correctly "Fusion."

      In the macOS preferences, toggle the macOS theme from light to dark. Nothing changes and the app stays light. (Note that without the style set to Fusion, this Layouts example does correctly follow the macOS light/dark setting, so something is wrong specifically with Fusion.)

       

      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
            mjsmithers Michael Smithers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes