PDA

View Full Version : Debugging JavaScript from QWebView



thiagoalencar22
30th October 2009, 11:12
How can you get JavaScript's output messages, of code executed from QWebView?
Whenever you call javascript code from Qt, it is easy:

QVariant result;
result = this->page()->mainFrame()->evaluateJavaScript( "js function.." );

But what about the JavaScript code which runs e.g. after "load(QUrl("page.html"));" , e.g., triggered by user interaction?

What I need is a way to obtain informations such as those provided by Firefox's web developers addons.

Suggestions?

thanks in advance,
Thiago F Alencar