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:
1 parent
7338aee6ba
commit
2960ec8d21
1 file changed
+1
@@ -25,6 +25,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
QLabel *label = this->findChild<QLabel*>("image");
|
||||
setCentralWidget(label);
|
||||
label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
|
||||
showFullScreen();
|
||||
update();
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user