This commit is contained in:
Your Name
2024-05-10 02:31:40 -05:00
parent f41816e092
commit 9a1066f668

View File

@@ -65,12 +65,12 @@ int main(int argc, char *argv[]) {
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);
// Set a timer to change the background color and load the URL after 0.5 seconds
QTimer::singleShot(500, [&]() {
QWebEngineView *web_view = new QWebEngineView();
window.setStyleSheet(""); // Remove the blue background
web_view->load(QUrl(args.first())); // Load the URL
layout->addWidget(web_view); // Add the web view to the layout