PDA

View Full Version : QtWebkit and JavaScript error messages



Diph
27th April 2009, 14:46
Can I somehow get JavaScript error messages in the console? Or does QtWebkit output messages to the console if there are error in JavaScript execution? Can I use javaScriptConsoleMessage() function from QWebPage?

e8johan
29th April 2009, 11:10
Overloading this function might do it: http://doc.trolltech.com/4.5/qwebpage.html#javaScriptConsoleMessage , but you will have to print the actual messages to the console yourself.