diff --git a/main.cpp b/main.cpp index 2d24a7e..b2d93d3 100644 --- a/main.cpp +++ b/main.cpp @@ -15,11 +15,22 @@ #include "mainwindow.h" #include +#include +#include +#include int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow w; + w.setGeometry( + QStyle::alignedRect( + Qt::LeftToRight, + Qt::AlignCenter, + w.size(), + QGuiApplication::screens().first()->geometry() + ) + ); w.show(); return app.exec();