This commit is contained in:
Your Name
2024-05-10 01:41:30 -05:00
parent f0963196f0
commit 5081464890

View File

@@ -132,8 +132,22 @@ int main(int argc, char *argv[]) {
QApplication a(argc, argv);
MainWindow w;
setMainWindow(&w);
QWidget window;
window.setWindowTitle("Webview");
window.setStyleSheet("background-color: black;");
QVBoxLayout *layout = new QVBoxLayout(&window);
// layout->setSpacing(0);
// layout->setContentsMargins(0, 0, 0, 0);
// QString url = args.first();
QWebEngineView *web_view = new QWebEngineView();
web_view->load(QUrl(argv[1]));
layout->addWidget(web_view);
// window.showFullScreen();
window.show();
// a.installEventFilter(&w);
return a.exec();
}