Reputation: 1974
I want to handle failed requests (for example, with http 404 error code in reply), display my own "notfound.html" page in QWebView. But there is no simple way to handle replies with QWebView/QWebPage classes.
My version of Qt is 4.7.
Upvotes: 3
Views: 2277
Reputation: 1974
The answer is to use reimplemented function qwebpage::extension. There you can specify error handler for three different error domains: http errors, qtnetwork layer errors, qtwebkit layer errors.
Upvotes: 6