Updated the code to resize the text box on window resize
authorVenu <venugopal.shivashankar@digia.com>
Thu, 9 Jan 2014 11:38:50 +0000 (12:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 9 Jan 2014 13:06:55 +0000 (14:06 +0100)
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>
examples/quick/scenegraph/openglunderqml/main.cpp

index dadaec8..91d558d 100644 (file)
@@ -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();