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

Matthias Kuhn matthias at opengis.ch
Thu Jan 21 07:44:35 PST 2016


Hi Tom,

You can enable developer tools on a QWebView and then use the inspector
and interactive JS console for debugging. That's very handy.

Matthias

On 01/21/2016 04:22 PM, Tom Chadwin wrote:
> qgis2web's preview pane is a QWebView. OpenLayers 3.13.0 has just been
> released. I've tried upgrading qgis2web's OpenLayers to that version, but
> the preview stops working. I found instructions for how to redirect the
> QWebView's console output to the QGIS Python console. The (not very
> meaningful) error I am getting is:
>
> WARNING:root:JS undefined:0
> TypeError: 'undefined' is not a function
>
> However, if I export instead of previewing, and open the file in IE11 or
> Chrome/Win, I get no error. If I revert qgis2web to OL3.12.1, it starts
> working again.
>
> Can anyone help me fix this? I've filed an issue at:
>
> https://github.com/tomchadwin/qgis2web/issues/176
>
> Thanks
>
> Tom
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160121/bd630b59/attachment-0001.sig>


More information about the Qgis-developer mailing list