This might work smoothly in QWebPage. But in the the QWebEngine it is not possible to handle the ssl error like that. It is needed to:
- Subclass QWebEnginePage and override the certificateError method, if you want to just ignore all errors, just make it return true OR if you want to deal with each error individally just check the QWebEngineCertificateError and return true/false depending of the error type
- In your QWebEngineView don't load the page directly, do:
Qt Code:
QWebEngineView* webView = new QWebEngineView(this); CustomPage* page = new CustomPage(webView); webview->setPage(page); webview->show();To copy to clipboard, switch view to plain text mode
And it's done =D





Reply With Quote
Bookmarks