diff --git a/src/plugins/qmlprojectmanager/wizards/templates/cpp/qmlapplicationview.cpp b/src/plugins/qmlprojectmanager/wizards/templates/cpp/qmlapplicationview.cpp index fe7b19a67bba98aa8f17ee1ad11ec758deb41f37..d9a24eebfb38aa69949d2384c1313cc7dd99c8f1 100644 --- a/src/plugins/qmlprojectmanager/wizards/templates/cpp/qmlapplicationview.cpp +++ b/src/plugins/qmlprojectmanager/wizards/templates/cpp/qmlapplicationview.cpp @@ -33,7 +33,6 @@ QmlApplicationView::QmlApplicationView(const QString &mainQmlFile, QWidget *pare setSource(QUrl(m_d->mainQmlFile)); connect(engine(), SIGNAL(quit()), SLOT(close())); setResizeMode(QDeclarativeView::SizeRootObjectToView); - setMinimumSize(10, 10); // Prevent size of 0 if Qml document does not specify width/height } QmlApplicationView::~QmlApplicationView() diff --git a/src/plugins/qmlprojectmanager/wizards/templates/qml/app/app.qml b/src/plugins/qmlprojectmanager/wizards/templates/qml/app/app.qml index baa3db352c2c7dbb011786e74cac2d1c45b453df..42136251dc1a4b525cf14daa24e14d4236685ad1 100644 --- a/src/plugins/qmlprojectmanager/wizards/templates/qml/app/app.qml +++ b/src/plugins/qmlprojectmanager/wizards/templates/qml/app/app.qml @@ -1,6 +1,8 @@ import Qt 4.7 Rectangle { + width: 200 + height: 323 Text { text: "Hello World" anchors.centerIn: parent