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

Fixed size windows cannot be restored from full screen mode under macOS Catalina

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.12, 6.2.3
    • Widgets: Main Window
    • None
    • macOS

    Description

      A fixed size main window offers the green full screen button under macOS Catalina.
      If the button is clicked, the window changes to full screen mode but there is no way to get it back to normal window mode.

      This behaviour is tested with Qt 5.12.12 and Qt 6.2.3 under macOS Catalina.
      Under Big Sur the green button is disabled.

      This is the code I used to reproduce the issue:

       

       

      #ifndef MAINWINDOW_H
      #define MAINWINDOW_H
      #include <QMainWindow>
      class MainWindow : public QMainWindow
      {
      Q_OBJECT
      public:
        MainWindow(QWidget *parent = nullptr);
        ~MainWindow();
      };
      #endif // MAINWINDOW_H
      

       

       

      #include "mainwindow.h"
      
      MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
      {
        setFixedSize(QSize(200, 100));
        show();
      }
      MainWindow::~MainWindow()
      {
      }
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            laseranichris Christian Süßkind
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes