From ee7e88128add8dc1b01a1638154c404428252830 Mon Sep 17 00:00:00 2001 From: Manuel Dewald Date: Fri, 25 Oct 2019 10:15:46 +0200 Subject: [PATCH] workaround for zooming issue --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6694f31..a7c24fb 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -19,7 +20,7 @@ MainWindow::MainWindow(QWidget *parent) : ui->setupUi(this); setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); - QMainWindow::showFullScreen(); + QTimer::singleShot(5, this, SLOT(showFullScreen())); QApplication::setOverrideCursor(Qt::BlankCursor); QLabel *label = this->findChild("image"); setCentralWidget(label);