Get screen of your app
EMStegehuis last edited by
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?
Maybe this can help `
qwasder85 last edited by qwasder85
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.