center in first available monitor to avoid issues with dual monitors
This commit is contained in:
parent
92f5a9ca5c
commit
221d3b9628
|
@ -32,8 +32,8 @@ ApplicationWindow {
|
|||
visible: true
|
||||
|
||||
Component.onCompleted: {
|
||||
setX(Screen.width / 2 - width / 2);
|
||||
setY(Screen.height / 2 - height / 2);
|
||||
setX(Qt.application.screens[0].width / 2 - width / 2);
|
||||
setY(Qt.application.screens[0].height / 2 - height / 2);
|
||||
}
|
||||
|
||||
signal navigateTo(string path)
|
||||
|
|
Loading…
Reference in New Issue