<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Marco,<div class=""><br class=""></div><div class="">This doesn’t sound like a QGIS custom widget issue since QWebView is not related to QGIS.</div><div class="">It seems that QWebView is well defined in PyQt4 compatibility layer [0].</div><div class="">The issue is probably that you try to run system uic instead of qgis.PyQt.uic.</div><div class=""><br class=""></div><div class="">This make me thunk of the reply to Matteo as well….try to run qgis.PyQt.uic instead of uic</div><div class=""><br class=""></div><div class="">I hope this helps</div><div class=""><br class=""></div><div class="">Denis</div><div class=""><br class=""></div><div class="">[0] <a href="https://github.com/qgis/QGIS/blob/release-2_18/python/PyQt/PyQt4/QtWebKitWidgets.py#L32" class="">https://github.com/qgis/QGIS/blob/release-2_18/python/PyQt/PyQt4/QtWebKitWidgets.py#L32</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7 Dec 2016, at 12:51, Marco Bernasocchi <<a href="mailto:marco@opengis.ch" class="">marco@opengis.ch</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Salut Denis,<br class=""><br class="">I'm a bit lost, I see in plugins like the resources sharing tool [0]<br class=""><br class=""><customwidgets><br class=""> <customwidget><br class=""> <class>QWebView</class><br class=""> <extends>QWidget</extends><br class=""> <header>QtWebKitWidgets/QWebView</header><br class=""> </customwidget><br class=""> </customwidgets><br class=""><br class="">and when I install the plugin I see:<br class=""><br class="">This plugin is broken<br class="">No module named QtWebKitWidgets.QWebView<br class=""><br class="">this plugins also use the uic.loadUi approach<br class=""><br class="">I've qgis installed from packages and also self build:<br class="">marco@placebo:~/dev/QGIS/master/python/custom_widgets$ locate<br class="">libqgis_customwidgets.so<br class="">/usr/lib/x86_64-linux-gnu/qt4/plugins/designer/libqgis_customwidgets.so<br class="">/usr/lib/x86_64-linux-gnu/qt4/plugins/designer/libqgis_customwidgets.so.2.18.1<br class="">marco@placebo:~/dev/QGIS/master/python/custom_widgets$ locate<br class="">qgis_customwidgets.py<br class="">/home/marco/dev/QGIS/master/python/custom_widgets/qgis_customwidgets.py<br class="">/home/marco/gis_data/pacsafe/QGIS/python/custom_widgets/qgis_customwidgets.py<br class="">/usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/qgis_customwidgets.py<br class="">/usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/qgis_customwidgets.pyc<br class=""><br class=""><br class=""><br class="">Am I missing some magic somewhere? QtWebKitWidgets exists only from Qt5.<br class="">in Qt4 it should still be QtwebKit.<br class=""><br class="">ciao<br class="">Marco<br class=""><br class=""><br class="">[0]<br class=""><a href="https://github.com/akbargumbira/qgis_resources_sharing/blob/master/resource_sharing/gui/ui/resource_sharing_dialog_base.ui#L598" class="">https://github.com/akbargumbira/qgis_resources_sharing/blob/master/resource_sharing/gui/ui/resource_sharing_dialog_base.ui#L598</a><br class=""><br class=""><br class="">On 07.12.2016 22:58, Denis Rouzaud wrote:<br class=""><blockquote type="cite" class="">Hi Matteo,<br class=""><br class="">The file is not present simply because you did not install QGIS.<br class=""><br class="">See here https://github.com/qgis/QGIS/blob/master/python/CMakeLists.txt#L287<br class=""><br class=""><br class="">Having it documented somewhere would be nice:<br class=""><br class="">* Approach when installing<br class=""><br class="">* Without installing: were to put libqgis_customwidget and<br class="">qgis_customwidgets.py, how to run pyuic.<br class=""><br class=""><br class="">Cheers,<br class=""><br class="">Denis<br class=""><br class="">On 12/07/2016 10:41 AM, matteo wrote:<br class=""><blockquote type="cite" class="">Hold on.. I should have manage it..<br class=""><br class="">I discovered that my machine was missing the file<br class=""><br class="">qgis_customwidgets.py<br class=""><br class="">in the folder<br class=""><br class="">/usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/<br class=""><br class=""><br class="">in another machine I found that file and I copied it in the right folder<br class="">(the above one) and now it seems working, that is the plugin with the<br class="">custom widget is now correctly loaded without any more issues..<br class=""><br class="">So many thanks Denis for the assistance..<br class=""><br class=""><br class="">My question is now.. why was that file missing in the folder?<br class="">In the other machine I ran Ubuntu and I was used to compile QGIS with<br class="">debian rules.<br class="">In this new machine I compile QGIS with make and run it directly from<br class="">the output folder (so QGIS has never been installed with repository<br class="">packages and/or deb files, don't know if this could be related to the<br class="">problem)<br class=""><br class="">I have some confusion on my mind..<br class=""><br class="">If this is worth I can put this solution (if you think it is a solution<br class="">and not a workaround) somewhere in the website or another place so that<br class="">other people facing the same problem could solve the issue.<br class=""><br class="">Many many thanks to all<br class=""><br class="">Matteo<br class=""></blockquote><br class=""><br class=""><br class="">_______________________________________________<br class="">Qgis-developer mailing list<br class="">Qgis-developer@lists.osgeo.org<br class="">List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer<br class="">Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer<br class=""><br class=""></blockquote><br class="">-- <br class="">Marco Bernasocchi<br class="">OPENGIS.ch - berna.io - 27summits.ch<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>