Unsolved Get screen of your app
-
With the switch to QT 5.13.2 we are updating code that uses QDesktopWidget.
What is the proper way to find the QScreen that your application is running on (the mainwindow at least). And thus be able to get the geometry?
Regards,
Marcel
-
Hi
Maybe this can help `
https://forum.qt.io/topic/98160/find-the-active-qscreen-of-any-qwidget -
QScreen* p_screen = QApplication::screens().at(0); //Returns the "main" screen
Edit: Ah, sorry. This will NOT return the screen that your main window is located on, only what Windows considers your main display.