Central Widget and full screen
Unsolved
General and Desktop
-
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();
Pavel
-
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.
-
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.
https://forum.qt.io/topic/23308/how-to-fullscreen-the-child-widget/8