#include <QtGui/QScreen> QSize screenSize = QGuiApplication::primaryScreen()->availableSize() ; qDebug("%dx%d",screenSize.width(),screenSize.height()) ;
#include <QtGui/QScreen> QSize virtualSize = QGuiApplication::primaryScreen()->availableVirtualSize() ; qDebug("%dx%d",virtualSize.width(),virtualSize.height()) ;
#include <QtGui/QScreen> QSize size = QGuiApplication::primaryScreen()->size() ; qDebug("%dx%d",size.width(),size.height()) ;