Console.log
-
Apologies if this has been covered before, I have searched before asking...
Is there any way that I can view console.log output from a JavaScript file linked in via a HTML document. Or is there a better way that I should be doing this?
Thanks
Chris -
Very good question, have you Googled something?
-
I have Googled and searched the forum, with no luck
-
Subclass QWebPage and override "javaScriptConsoleMessage":http://doc-snapshot.qt-project.org/4.8/qwebpage.html#javaScriptConsoleMessage , set your subclassed QWebPage to the QWebView instance and you will be able to capture console.log messages in javaScriptConsoleMessage function in your subclassed QWebPage.