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

[REG 5.8->5.9][macOS] the maximum size of QWindow is not respected when resizing by pressing the maximizing button

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.4, 5.10.1
    • Fix Version/s: 5.11.1
    • Component/s: QPA
    • Environment:
      macOS
    • Platform/s:
      macOS

      Description

      Testcase:

      #include <QGuiApplication>
      #include <QWindow>
      
      int main(int argc, char** argv)
      {
          QGuiApplication app(argc, argv);
      
          QWindow window;
          window.setFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint);
          window.setMinimumSize(QSize(200, 200));
          window.setMaximumSize(QSize(400, 400));
          window.show();
      
          return app.exec();
      }
      

      Steps to reproduce:

      • run the sample attached.
      • press the 'maximize' button (green plus-sign button on the title bar).
        EXPECTED: the window is resized to be larger, but the size is limited by the maximum size set.
        ACTUAL: the window is resized to cover the whole screen.

        Attachments

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

          Activity

            People

            Assignee:
            vestbo Tor Arne Vestbø
            Reporter:
            risto.sipola Risto Sipola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes