From 2c4430f0ec62da6a5566abbf07e4b65cd560c3af Mon Sep 17 00:00:00 2001 From: Venu Date: Thu, 9 Jan 2014 12:38:50 +0100 Subject: [PATCH] Updated the code to resize the text box on window resize MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Topi Reiniö --- examples/quick/scenegraph/openglunderqml/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/quick/scenegraph/openglunderqml/main.cpp b/examples/quick/scenegraph/openglunderqml/main.cpp index dadaec8..91d558d 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("OpenGLUnderQML", 1, 0, "Squircle"); QQuickView view; + view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///scenegraph/openglunderqml/main.qml")); view.show(); -- 2.7.4