diff options
Diffstat (limited to 'examples/qpa')
-rw-r--r-- | examples/qpa/windows/window.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/qpa/windows/window.cpp b/examples/qpa/windows/window.cpp index d08db5714b..76bc117793 100644 --- a/examples/qpa/windows/window.cpp +++ b/examples/qpa/windows/window.cpp @@ -23,9 +23,15 @@ Window::Window(QWindow *parent) if (parent) setGeometry(QRect(160, 120, 320, 240)); - else + else { setGeometry(QRect(10, 10, 640, 480)); + setSizeIncrement(QSize(10, 10)); + setBaseSize(QSize(640, 480)); + setMinimumSize(QSize(240, 160)); + setMaximumSize(QSize(800, 600)); + } + create(); QGuiApplicationPrivate::platformIntegration()->createWindowSurface(this, winId()); |