Log errors in QWebview/QWebpage