forked from qt-creator/qt-creator
Fix default "hello world" qml file to not use anchors
Some things like reparenting do not work right now in the Design mode for anchored items, and we are missing a way to inform the user. Using absolute positions for positioning therefore avoids confusion for first time users.
This commit is contained in:
@@ -109,8 +109,9 @@ Core::GeneratedFiles QmlNewProjectWizard::generateFiles(const QWizard *w,
|
||||
<< " width: 200" << endl
|
||||
<< " height: 200" << endl
|
||||
<< " Text {" << endl
|
||||
<< " x: 66" << endl
|
||||
<< " y: 93" << endl
|
||||
<< " text: \"Hello World\"" << endl
|
||||
<< " anchors.centerIn: parent" << endl
|
||||
<< " }" << endl
|
||||
<< "}" << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user