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

Qt Quick: Broken behaviour on Windows 11 with Qt.ExpandedClientAreaHint and Qt.NoTitleBarBackgroundHint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9.0
    • GUI: Window management
    • None
    • Qt. 6.9.0 (MinGW 64-bit and MSVC 64-bit)
      Microsoft Windows 11 24H2
    • Windows

    Description

      On Windows, when combining flags Qt.ExpandedClientAreaHint and Qt.NoTitleBarBackgroundHint on a QML Window, the following issues appear:

      1. Maximize/minimize animations no longer work (also aero snap no longer works)
      2. Sometimes when I hover over the window after giving focus to another window for some time, the app will switch to fullscreen without me doing anything
      3. Maximize behaves more like a 'fullscreen' in the sense that it hides everything, even the taskbar
      4. The native titlebar title and button symbols render weirdly, it seems to lack antialiasing and to be in some kind of 'bold' font
      5. Hovering over the window controls shows an opaque color for the minimize and maximize buttons
      6. The application doesn't appear on the taskbar or the alt+tab menu

      I've tried on both my main Windows 11 installation and on a mostly stock Windows 11 virtual machine running on top of Linux, both present the exact same behavior
      (Note: I have StartAllBack11 installed, but at least on my main Windows 11 install, I tried with it disabled and the same behavior occurred)

      Attachment descriptions:
      Windows_Native.png -> Screenshot of the problem on my main Windows 11 installation
      Windows_VirtualMachine.png -> Screenshot on a Windows 11 Virtual Machine
      ExpandedClientAreaTest.zip -> minimal reproducible example

      Attachments

        1. ExpandedClientAreaTest.zip
          2 kB
          Moises Apaza
        2. Windows_Native.png
          161 kB
          Moises Apaza
        3. Windows_VirtualMachine.png
          432 kB
          Moises Apaza
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            typical_player Moises Apaza
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes