center in first available monitor to avoid issues with dual monitors

This commit is contained in:
Iuri Matias 2020-07-14 12:20:08 -04:00
parent 92f5a9ca5c
commit 221d3b9628
1 changed files with 2 additions and 2 deletions

View File

@ -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)