qt: force the screen output widget to be resizable
This commit is contained in:
@@ -1544,6 +1544,7 @@ void MainWindow::on_actionFullscreen_triggered() {
|
|||||||
ui->menubar->hide();
|
ui->menubar->hide();
|
||||||
ui->statusbar->hide();
|
ui->statusbar->hide();
|
||||||
ui->toolBar->hide();
|
ui->toolBar->hide();
|
||||||
|
ui->stackedWidget->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
||||||
showFullScreen();
|
showFullScreen();
|
||||||
if (vid_api == 5) QTimer::singleShot(0, this, [this] () { ui->stackedWidget->switchRenderer(RendererStack::Renderer::Direct3D9); });
|
if (vid_api == 5) QTimer::singleShot(0, this, [this] () { ui->stackedWidget->switchRenderer(RendererStack::Renderer::Direct3D9); });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user