[Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

Tom Chadwin tom.chadwin at nnpa.org.uk
Fri Jan 22 09:14:42 PST 2016

I've got this working largely as I want - I now have a devtools inspector in
my plugin dialog which F12 toggles (download qgis2web master from Github to
see it).

I would like to toggle the inspector automatically if there is a JS error in
the QWebPage/QWebView. I imagine this is done by subclassing
javaScriptConsoleMessage(). However, if I do this, the inspector stops
working, and becomes blank. Is this because:

1. My subclassing only javaScriptConsoleMessage detaches the inspector from
the web page?

2. My subclassing only javaScriptConsoleMessage removes

As you can tell from my probably ignorantly phrased questions, I'm a bit out
of my comfort zone, as someone with very little OOP knowledge.

View this message in context: http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541p5246792.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

More information about the Qgis-developer mailing list