Use showFullScreen() instead of using a flag
This commit is contained in:
parent
1197598a3d
commit
a3967c76ac
3
main.cpp
3
main.cpp
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user