diff options
Diffstat (limited to 'examples/quick/scenegraph/openglunderqml/main.cpp')
-rw-r--r-- | examples/quick/scenegraph/openglunderqml/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/openglunderqml/main.cpp b/examples/quick/scenegraph/openglunderqml/main.cpp index dadaec8d8c..91d558dde7 100644 --- a/examples/quick/scenegraph/openglunderqml/main.cpp +++ b/examples/quick/scenegraph/openglunderqml/main.cpp @@ -53,6 +53,7 @@ int main(int argc, char **argv) qmlRegisterType<Squircle>("OpenGLUnderQML", 1, 0, "Squircle"); QQuickView view; + view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///scenegraph/openglunderqml/main.qml")); view.show(); |