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

Expanded Client Areas Not Working for Widgets Application on MacOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1
    • Widgets: Main Window
    • None
    • macOS 15.5
    • macOS

      I read the blog post about expanded client areas and safe areas (see link below).

      Is this functionality only for QtQuick applications or does it also work in C++ Widget applications?

      I tried to implement this in a Widget-based desktop application. I set the hints on the main window, added a label with pixmap to the central widget, and set a grid layout with 0-widget margins on the central widget. When running the application, the pixmap occupies the whole main window, but the application title bar, status bar, etc. are the normal look and feel. Based on the blog, I expected the pixmap image to be the background for the application menubar.

      https://www.qt.io/blog/expanded-client-areas-and-safe-areas-in-qt-6.9?utm_source=installer&utm_medium=banner&utm_campaign=installer4Qt69

       

        1. mainwindow.cpp
          0.3 kB
        2. mainwindow.ui
          2 kB
        3. Screenshot 2025-06-18 at 16.25.58.png
          Screenshot 2025-06-18 at 16.25.58.png
          2.35 MB
        4. Screenshot 2025-06-19 at 10.40.10.png
          Screenshot 2025-06-19 at 10.40.10.png
          1.59 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vestbo Tor Arne Vestbø
            michaelrice Michael Rice
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes