Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.4, 5.10.1
-
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
For Gerrit Dashboard: QTBUG-67376 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
229788,3 | macOS: Respect maximum window size when computing zoomed state geometry | 5.11 | qt/qtbase | Status: MERGED | +2 | 0 |
231516,1 | macOS: Respect maximum window size when computing zoomed state geometry | 5.11.1 | qt/qtbase | Status: ABANDONED | 0 | 0 |