#include #include #include int main(int argc, char* argv[]) { QApplication app(argc, argv); QWidget widget; widget.showMaximized(); widget.show(); qDebug() << widget.width() << ", " << widget.height(); int rtnVal = app.exec(); return rtnVal; }