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

QML ApplicationWindow titlebar does not respect Windows dark mode setting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.0
    • None
    • Windows

    Description

      There is a difference in behavior between QML Window and QML ApplicationWindow. While the Window correctly paints the titlebar light/dark according to Windows dark mode setting, the ApplicationWindow always uses the light titlebar.

      See the attached MWE which demonstrates the differences.

      If this is expected behavior, how would I get the QML ApplicationWindow to also use the light/dark mode setting?

      Steps to reproduce:
      1) Start the MWE
      2) Toggle dark mode setting in Windows preferences
      3) The QML Window instance correctly adapts to the setting light/dark
      4) The QML ApplicationWindow always stays light

      Attachments

        1. image-2025-04-25-12-08-46-557.png
          image-2025-04-25-12-08-46-557.png
          12 kB
        2. CMakeLists.txt
          1 kB
        3. MainApplicationWindow.qml
          0.1 kB
        4. MainWindow.qml
          0.1 kB
        5. main.cpp
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            janmoeller Jan Möller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes