Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.11
-
None
-
-
9c72ae61aa
Description
Simple repro:
#include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication a(argc, argv); QPushButton b{"hello world"}; b.showFullScreen(); return a.exec(); }
Shows up as this, and the window can be dragged:
If I change the code into :
#include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication a(argc, argv); QPushButton b{"hello world"}; b.showFullScreen(); b.setWindowFlags(Qt::Window | Qt::FramelessWindowHint); return a.exec(); }
Nothing at all is shown, only the dark grey background of the fake compositor. Same with just
b.setWindowFlags(Qt::FramelessWindowHint);
Edit: it was a problem of order, calling setWindowFlags before showFullScreen does the trick. On desktop linux it works if put after though.