fix: center window in screen
This commit is contained in:
parent
06efb531cb
commit
938b1ead15
|
@ -6,6 +6,8 @@ import QtQml.StateMachine 1.14 as DSM
|
|||
import QtMultimedia 5.13
|
||||
import Qt.labs.settings 1.0
|
||||
import QtQml 2.13
|
||||
import QtQuick.Window 2.0
|
||||
|
||||
import "./onboarding"
|
||||
import "./app"
|
||||
import "./sounds"
|
||||
|
@ -29,6 +31,11 @@ ApplicationWindow {
|
|||
}
|
||||
visible: true
|
||||
|
||||
Component.onCompleted: {
|
||||
setX(Screen.width / 2 - width / 2);
|
||||
setY(Screen.height / 2 - height / 2);
|
||||
}
|
||||
|
||||
signal navigateTo(string path)
|
||||
|
||||
ErrorSound {
|
||||
|
|
Loading…
Reference in New Issue