#include "mainwindow.h" #include #include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.move(QApplication::desktop()->screen()->rect().center() - w.rect().center()); w.show(); return a.exec(); }