How to open a main window in a second monitor with 'Qt Quick'
QML and Qt Quick
4
Posts
2
Posters
1.5k
Views
1
Watching
-
Hi,
I'm an all brand new programmer in Qt Quick and I would like to open my only and main window in my second monitor. It sounds simple but I wasn't able to figure it out, despite the fact that I have delved into the forum. Can anyone help me please?
Thank you!
-
Hi and welcome to devnet,
One way to do it is to get the geometry of your second screen using QDesktopWidget and then move your application window in that geometry.
Hope it helps
-
It's also a solution but you have to know your screen dimensions. With QDesktopWidget you ensure that you are in a valid geometry and don't need to know your screen size.