From efae31ec63bfc788a7b6bd3f06563c03b2c49d71 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 10 May 2024 01:00:25 -0500 Subject: [PATCH] wip --- system/clearpilot/tools/qt_webview.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/system/clearpilot/tools/qt_webview.cc b/system/clearpilot/tools/qt_webview.cc index 3e3a7c0..646c0d3 100644 --- a/system/clearpilot/tools/qt_webview.cc +++ b/system/clearpilot/tools/qt_webview.cc @@ -33,7 +33,6 @@ int main(int argc, char *argv[]) { QWidget window; window.setWindowTitle("Webview"); window.setStyleSheet("background-color: black;"); - window.showFullScreen(); // auto windowHandle = window.windowHandle(); // if (!windowHandle) { @@ -54,13 +53,16 @@ int main(int argc, char *argv[]) { // window.setFixedSize(2160, 1080); QVBoxLayout *layout = new QVBoxLayout(&window); - layout->setSpacing(0); - layout->setContentsMargins(0, 0, 0, 0); + // layout->setSpacing(0); + // layout->setContentsMargins(0, 0, 0, 0); // QString url = args.first(); QWebEngineView *web_view = new QWebEngineView(); - web_view->load(QUrl(argv[1]))); + web_view->load(QUrl(argv[1])); layout->addWidget(web_view); + + // window.showFullScreen(); + window.show() return app.exec(); }