import QtQuick 2.10 import QtQuick.Window 2.13 import de.skycoder42.QtMvvm.Quick 1.0 import "qrc:/const/" import "qrc:/theme/" QtMvvmApp { title: qsTr("consoleEmulator") id: mvvmApp onWidthChanged: Const.widthRatio = mvvmApp.width / Const.windowWidth onHeightChanged: Const.heightRatio = mvvmApp.height / Const.windowHeight Component.onCompleted: { width = Const.windowWidth height = Const.windowHeight x = (Screen.width - width) / 2 y = (Screen.height - height) } }