I load many urls in a QWebEngineView object, one by one. Some urls are displayed normally, some will make my app crash. I do not know if it is a Qt problem or chromium problem. But can I avoid qtwebengine to crash main program so I can continue to load the following urls? It should be something like:
But since QWebEngineView::load is an asynchronous function, I could not use the above code to ignore the failed url.Qt Code:
for(i=0;i<100;i++) { try { view->load(urls[i]); } catch(...) { } }To copy to clipboard, switch view to plain text mode
Bookmarks