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.
This commit is contained in:
pepe82sh
2020-12-12 08:48:57 +01:00
parent 7338aee6ba
commit 2960ec8d21

View File

@@ -25,6 +25,7 @@ MainWindow::MainWindow(QWidget *parent) :
QLabel *label = this->findChild<QLabel*>("image"); QLabel *label = this->findChild<QLabel*>("image");
setCentralWidget(label); setCentralWidget(label);
label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter); label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
showFullScreen();
update(); update();
} }