From 2c4430f0ec62da6a5566abbf07e4b65cd560c3af Mon Sep 17 00:00:00 2001 From: Venu Date: Thu, 9 Jan 2014 12:38:50 +0100 Subject: Updated the code to resize the text box on window resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(+) (limited to 'examples/quick/scenegraph') 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("OpenGLUnderQML", 1, 0, "Squircle"); QQuickView view; + view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///scenegraph/openglunderqml/main.qml")); view.show(); -- cgit v1.2.3