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.