fix: center window in screen

This commit is contained in:
Richard Ramos 2020-07-12 12:47:46 -04:00 committed by Iuri Matias
parent 06efb531cb
commit 938b1ead15
1 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import QtQml.StateMachine 1.14 as DSM
import QtMultimedia 5.13 import QtMultimedia 5.13
import Qt.labs.settings 1.0 import Qt.labs.settings 1.0
import QtQml 2.13 import QtQml 2.13
import QtQuick.Window 2.0
import "./onboarding" import "./onboarding"
import "./app" import "./app"
import "./sounds" import "./sounds"
@ -29,6 +31,11 @@ ApplicationWindow {
} }
visible: true visible: true
Component.onCompleted: {
setX(Screen.width / 2 - width / 2);
setY(Screen.height / 2 - height / 2);
}
signal navigateTo(string path) signal navigateTo(string path)
ErrorSound { ErrorSound {