问题:QGuiApplication has not been declared
Qt5
QRect availablerect = QGuiApplication::primaryScreen()->availableGeometry();
Qt4
QDesktopWidget *deskWgt = QApplication::desktop();
if(deskWgt)
{
QRect availablerect = deskWgt->availableGeometry();
}
参考: https://blog.youkuaiyun.com/iEearth/article/details/43669821?utm_source=blogxgwz0