From 9b9db99ea218599abd25ec7c99cc1cef7119c688 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Mon, 28 Jul 2025 15:55:10 -0700 Subject: [PATCH] feat: explicitly enable full screen for x86 --- webview/src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)