Use showFullScreen() instead of using a flag

This commit is contained in:
Gerhard Hoffmann 2023-09-28 11:47:09 +02:00
parent 1197598a3d
commit a3967c76ac

View File

@ -180,8 +180,7 @@ int main(int argc, char *argv[]) {
worker.setMainWindow(&mw); worker.setMainWindow(&mw);
mw.setWindowFlags(Qt::Window | Qt::FramelessWindowHint); mw.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
mw.setWindowState(Qt::WindowFullScreen); mw.showFullScreen();
mw.show();
return a.exec(); return a.exec();
} }