#include "mainwindow.h" #include #include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.setGeometry( QStyle::alignedRect( Qt::LeftToRight, Qt::AlignCenter, w.size(), qApp->desktop()->availableGeometry() ) ); w.show(); return a.exec(); }