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

Regression in Qt 6.8.0 Beta 2 - macOS window flag (NSWindowStyleMaskFullSizeContentView) doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.8.0 RC
    • 6.8.0 Beta2
    • GUI: Other
    • None
    • macOS

    Description

      Hello,

      I attached here the minimal code to reproduce this bug. In the latest stable Qt 6.7.2, setting the window flag NSWindowStyleMaskFullSizeContentView on macOS causes the "contentView consumes the full size of the window" (from here), but in Qt 6.8.0 Beta 2, this stops working, causing the inability to properly create native frameless windows on macOS. This is a major issue that I know will affect many users.

      Here's a screenshot of the minimal app working properly in Qt 6.7.2, as you can see the entire content of the window takes the full size of the window (i.e. the toolbar isn't present). (The images are also attached)

      https://imgur.com/5S6iQoV

      Here's a screenshot of the minimal app not working properly in Qt 6.8.0 Beta 2:

      https://imgur.com/a/YKV6scI

      As you can see, the title bar is present, while it should not be.

      Tested on macOS Monterey 12.7.3.

      Attachments

        1. testTitlebar.zip
          10 kB
        2. Qt 6.8.0.png
          Qt 6.8.0.png
          77 kB
        3. Qt 6.7.2.png
          Qt 6.7.2.png
          78 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            rubymamis Ruby Mamistvalove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes