<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12/07/2016 08:45 PM, Marco
      Bernasocchi wrote:<br>
    </div>
    <blockquote
      cite="mid:5DA1D75B-1A0D-45D7-A07E-3C01A9EFE31D@opengis.ch"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi Denis, <br>
      I was just put of by the fact that the xml tag is called
      customwidget.<br>
      <br>
      They are in fact promotet widgets. And I really wonder how this
      can work.<br>
      <br>
      Could you try the resource sharing plugin. Does it work for you?<br>
    </blockquote>
    <br>
    Well, it made QGIS crash upon installation.<br>
    And now QGIS doesn't start anymore:<br>
    <br>
    I get Warning: Object::connect: No such signal
    QWebPage::loadProgress(int)<br>
    And then a seg fault....<br>
    <br>
    No real time to investigate...but probably due to the fact that I
    compiled without QtWebKit.<br>
    <br>
    <blockquote
      cite="mid:5DA1D75B-1A0D-45D7-A07E-3C01A9EFE31D@opengis.ch"
      type="cite">
      <br>
      Ciao<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On 8 December 2016 02:16:55 GMT+13:00,
        Rouzaud Denis <a class="moz-txt-link-rfc2396E" href="mailto:denis.rouzaud@gmail.com"><denis.rouzaud@gmail.com></a> wrote:
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          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 moz-do-not-send="true"
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 moz-do-not-send="true"
                    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 moz-do-not-send="true"
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
                      <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/master/python/CMakeLists.txt#L287">https://github.com/qgis/QGIS/blob/master/python/CMakeLists.txt#L287</a><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="">
                      <a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br class="">
                      List info:
                      <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br
                        class="">
                      Unsubscribe:
                      <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><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>
        </blockquote>
      </div>
      <br>
      -- <br>
      Marco Bernasocchi (mobile).<br>
      <a moz-do-not-send="true" href="http://OPENGIS.ch">OPENGIS.ch</a>
      - <a moz-do-not-send="true" href="http://berna.io">berna.io</a> -
      <a moz-do-not-send="true" href="http://27summits.ch">27summits.ch</a>
    </blockquote>
    <br>
  </body>
</html>