1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 08:22:33 +02:00

Change window to be in the center of the screen when creating

This commit is contained in:
kelteseth 2017-05-01 16:46:13 +02:00
parent ac096124ce
commit 2b9afb0bf5

View File

@ -13,6 +13,10 @@ Window {
minimumHeight: 768
minimumWidth: 1050
Component.onCompleted: {
setX(Screen.width / 2 - width / 2);
setY(Screen.height / 2 - height / 2);
}
Loader {
id: pageLoader
anchors {