Home > other >  Qt: QDesktopWidget file not found
Qt: QDesktopWidget file not found

Time:10-23

So I'm trying to use this class just to resize a window and its the main class I found to get the geometry of a users screen. I couldn't find many others with this problem besides adding : QT = widgets in my .pro file and running qmake. Unfortunately this did not work, if anyone has any advice Thankyou!

CodePudding user response:

From the Qt documentation:

QDesktopWidget was already deprecated in Qt 5, and has been removed in Qt 6, together with QApplication::desktop().

QScreen provides equivalent functionality to query for information about available screens, screen that form a virtual desktop, and screen geometries.

  •  Tags:  
  • c qt
  • Related