Fullscreen widget

后端 未结 2 1972
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 07:10

How can I make my widget fullscreen? I\'ve tried something like this:

void MainWindow::SetFullScreen()
{
    // Make our window without panels
    this->s         


        
2条回答
  •  长情又很酷
    2020-12-08 07:26

    QWidget::showFullScreen() is what you need - works great under Linux+Windows in my projects for years - but be careful, there shouldn't be two calls of this function (eg. first call of QMainWindo->showFullScreen() and then MyWidget->showFullScreen()).

    ciao, Chris

提交回复
热议问题