diff --git a/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl b/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl index 1a6597e2271..32b90720938 100644 --- a/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl +++ b/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl @@ -35,13 +35,14 @@ import QtQuick.VirtualKeyboard %{QtQuickVersion} @endif Window { - width: Constants.width - height: Constants.height + width: mainScreen.width + height: mainScreen.height visible: true title: "%{ProjectName}" %{UIClassName} { + id: mainScreen } @if %{UseVirtualKeyboard}