diff --git a/webview/src/mainwindow.cpp b/webview/src/mainwindow.cpp index 0234442c0..7a8f2c471 100644 --- a/webview/src/mainwindow.cpp +++ b/webview/src/mainwindow.cpp @@ -1,5 +1,7 @@ #include #include +#include +#include #include "mainwindow.h" #include "view.h" @@ -11,6 +13,10 @@ MainWindow::MainWindow() : QMainWindow() view->webView->settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, true); view->webView->settings()->setAttribute(QWebEngineSettings::ShowScrollBars, false); setCentralWidget(view); + + QRect screenGeometry = QGuiApplication::primaryScreen()->geometry(); + setGeometry(screenGeometry); + showFullScreen(); } void MainWindow::loadPage(const QString &uri)