This commit is contained in:
Your Name
2024-05-10 02:41:27 -05:00
parent 3709756a6c
commit b2a5c33763

View File

@@ -76,14 +76,14 @@ int main(int argc, char *argv[]) {
// web_view->load(QUrl(argv[1])); // web_view->load(QUrl(argv[1]));
// layout->addWidget(web_view); // layout->addWidget(web_view);
// // Set a timer to change the background color and load the URL after 0.5 seconds // Set a timer to change the background color and load the URL after 0.5 seconds
// QTimer::singleShot(500, [&]() { QTimer::singleShot(2000, [&]() {
// QWebEngineView *web_view = new QWebEngineView(); QWebEngineView *web_view = new QWebEngineView();
// window.setStyleSheet(""); // Remove the blue background window.setStyleSheet(""); // Remove the blue background
// web_view->load(QUrl(args.first())); // Load the URL web_view->load(QUrl(args.first())); // Load the URL
// layout->addWidget(web_view); // Add the web view to the layout layout->addWidget(web_view); // Add the web view to the layout
// window.update(); // Refresh window to apply changes window.update(); // Refresh window to apply changes
// }); });
// window.showFullScreen(); // window.showFullScreen();
window.show(); window.show();