diff options
author | Venu <venugopal.shivashankar@digia.com> | 2014-01-09 12:38:50 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-09 14:06:55 +0100 |
commit | 2c4430f0ec62da6a5566abbf07e4b65cd560c3af (patch) | |
tree | 920b00d6ba66e071497ab28d1b5d26edc92499ee /examples/quick/scenegraph | |
parent | 8673ae8bb6d4bac01cc54638a7d617072299a808 (diff) |
Updated the code to resize the text box on window resize
Without the QQuickView resizeMode set to
QQuickView::SizeRootObjectToView the text box control
appears in the middle and blocks the squircle effect.
Task-number: QTBUG-35584
Change-Id: Ib8fc40f087a44d05062e900c33b9de5a620d1cc5
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples/quick/scenegraph')
-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(); |