Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Central Widget and full screen
PavelM last edited by
It is possile show central widget of QMainWindow at fullscreen? (only central widget)
This code create an exception
setCentralWidget(ui->widget); ui->widget->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint ); ui->widget->showFullScreen();
Hi and welcome to devnet,
You should then remove the child widget from MainWindow's central widget and then make it full screen. When done put it back as central widget.
Ni.Sumi last edited by
Hi @PavelM ,
Here is the code sample that it can do, what Mr. @SGaist told. It has to be removed/ make it floated and then Fullscreen yb double click and the next double click on it brigns back to normal from Fullscreen.