From 2960ec8d215d7480bed08d85f88fd1394991a4ee Mon Sep 17 00:00:00 2001 From: pepe82sh Date: Sat, 12 Dec 2020 08:48:57 +0100 Subject: [PATCH] Fixed full screen behaviour In case the screen resulution did not match the size set in mainwindow.ui, you may only see part of the image shown. Putting the window in full screen explicitly fixes that issue. --- src/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f050002..bea10d6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -25,6 +25,7 @@ MainWindow::MainWindow(QWidget *parent) : QLabel *label = this->findChild("image"); setCentralWidget(label); label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter); + showFullScreen(); update(); }