Skip to content
Snippets Groups Projects
Commit bab51019 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Remove the setMinimum trick. The template .qml has a root size, instead.

parent 524d4453
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,6 @@ QmlApplicationView::QmlApplicationView(const QString &mainQmlFile, QWidget *pare ...@@ -33,7 +33,6 @@ QmlApplicationView::QmlApplicationView(const QString &mainQmlFile, QWidget *pare
setSource(QUrl(m_d->mainQmlFile)); setSource(QUrl(m_d->mainQmlFile));
connect(engine(), SIGNAL(quit()), SLOT(close())); connect(engine(), SIGNAL(quit()), SLOT(close()));
setResizeMode(QDeclarativeView::SizeRootObjectToView); setResizeMode(QDeclarativeView::SizeRootObjectToView);
setMinimumSize(10, 10); // Prevent size of 0 if Qml document does not specify width/height
} }
QmlApplicationView::~QmlApplicationView() QmlApplicationView::~QmlApplicationView()
......
import Qt 4.7 import Qt 4.7
Rectangle { Rectangle {
width: 200
height: 323
Text { Text {
text: "Hello World" text: "Hello World"
anchors.centerIn: parent anchors.centerIn: parent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment