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

setUnifiedTitleAndToolBarOnMac does not work anymore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.4.0
    • Widgets: Main Window
    • None
    • macOS

      If a QMainWindow contains a QOpenGLWidget, the macOS unified toolbar does not work anymore. It worked up to Qt 6.3.2, but starting at Qt 6.4 (and now Qt 6.5), the property unifiedTitleAndToolBarOnMac does not have the desired effect anymore. The two attached screenshots show the difference. Both show the official Qt 2D Painting Example , but with the statement "Window window;" in main.cpp replaced by

      QMainWindow window;
      window.addToolBar("ToolBar")->addAction(new QAction("Test"));
      window.setUnifiedTitleAndToolBarOnMac(true);
      window.setCentralWidget(new Window);

      The Qt 6.5 version still has a separate title bar, while it is merged with the toolbar in the Qt 6.3 version.

        1. Qt6.5-1.png
          304 kB
          Thomas Röfer
        2. Qt6.3-2.png
          298 kB
          Thomas Röfer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            roefer Thomas Röfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes