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 / 1.3 height = Const.windowHeight / 1.3 x = (Screen.width - width) / 2 y = (Screen.height - height) } }