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

QML ApplicationWindow titlebar does not respect Windows dark mode setting

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes