<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 8, 2016 at 7:42 AM, Denis Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF"><span class="gmail-">
    <p><br>
    </p>
    <br>
    <div class="gmail-m_3151282071394212205moz-cite-prefix">On 12/07/2016 08:45 PM, Marco
      Bernasocchi wrote:<br>
    </div>
    <blockquote type="cite">
      
      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></span>
    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.<div><div class="gmail-h5"><br>
    <br></div></div></div></blockquote><div><br></div><div>In that case, we might need to add a stub to the compatibility <a href="https://qgis.org/api/classQgsWebView.html">https://qgis.org/api/classQgsWebView.html</a> and use that class in the plugin instead of QWebView.<br><br></div><div>This should at least solve the crash.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><div><div class="gmail-h5">
    <blockquote 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="gmail-m_3151282071394212205moz-txt-link-rfc2396E" href="mailto:denis.rouzaud@gmail.com" target="_blank"><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><br>
          </div>
          <div>This doesn’t sound like a QGIS custom widget
            issue since QWebView is not related to QGIS.</div>
          <div>It seems that QWebView is well defined in PyQt4
            compatibility layer [0].</div>
          <div>The issue is probably that you try to run system
            uic instead of qgis.PyQt.uic.</div>
          <div><br>
          </div>
          <div>This make me thunk of the reply to Matteo as
            well….try to run qgis.PyQt.uic instead of uic</div>
          <div><br>
          </div>
          <div>I hope this helps</div>
          <div><br>
          </div>
          <div>Denis</div>
          <div><br>
          </div>
          <div>[0] <a href="https://github.com/qgis/QGIS/blob/release-2_18/python/PyQt/PyQt4/QtWebKitWidgets.py#L32" target="_blank">https://github.com/qgis/<wbr>QGIS/blob/release-2_18/python/<wbr>PyQt/PyQt4/QtWebKitWidgets.py#<wbr>L32</a></div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
            <div>
              <blockquote type="cite">
                <div>On 7 Dec 2016, at 12:51, Marco Bernasocchi
                  <<a href="mailto:marco@opengis.ch" target="_blank">marco@opengis.ch</a>>
                  wrote:</div>
                <br class="gmail-m_3151282071394212205Apple-interchange-newline">
                <div>
                  <div>Salut Denis,<br>
                    <br>
                    I'm a bit lost, I see in plugins like the resources
                    sharing tool [0]<br>
                    <br>
                    <customwidgets><br>
                     <customwidget><br>
                      <class>QWebView</class><br>
                      <extends>QWidget</extends><br>
  <header>QtWebKitWidgets/<wbr>QWebView</header><br>
                     </customwidget><br>
                    </customwidgets><br>
                    <br>
                    and when I install the plugin I see:<br>
                    <br>
                    This plugin is broken<br>
                    No module named QtWebKitWidgets.QWebView<br>
                    <br>
                    this plugins also use the
                    uic.loadUi approach<br>
                    <br>
                    I've qgis installed from packages and also self
                    build:<br>
marco@placebo:~/dev/QGIS/<wbr>master/python/custom_widgets$ locate<br>
                    libqgis_customwidgets.so<br>
/usr/lib/x86_64-linux-gnu/qt4/<wbr>plugins/designer/libqgis_<wbr>customwidgets.so<br>
/usr/lib/x86_64-linux-gnu/qt4/<wbr>plugins/designer/libqgis_<wbr>customwidgets.so.2.18.1<br>
marco@placebo:~/dev/QGIS/<wbr>master/python/custom_widgets$ locate<br>
                    qgis_customwidgets.py<br>
/home/marco/dev/QGIS/master/<wbr>python/custom_widgets/qgis_<wbr>customwidgets.py<br>
/home/marco/gis_data/pacsafe/<wbr>QGIS/python/custom_widgets/<wbr>qgis_customwidgets.py<br>
/usr/lib/python2.7/dist-<wbr>packages/PyQt4/uic/widget-<wbr>plugins/qgis_customwidgets.py<br>
/usr/lib/python2.7/dist-<wbr>packages/PyQt4/uic/widget-<wbr>plugins/qgis_customwidgets.pyc<br>
                    <br>
                    <br>
                    <br>
                    Am I missing some magic somewhere? QtWebKitWidgets
                    exists
                    only from Qt5.<br>
                    in Qt4 it should still be QtwebKit.<br>
                    <br>
                    ciao<br>
                    Marco<br>
                    <br>
                    <br>
                    [0]<br>
                    <a href="https://github.com/akbargumbira/qgis_resources_sharing/blob/master/resource_sharing/gui/ui/resource_sharing_dialog_base.ui#L598" target="_blank">https://github.com/<wbr>akbargumbira/qgis_resources_<wbr>sharing/blob/master/resource_<wbr>sharing/gui/ui/resource_<wbr>sharing_dialog_base.ui#L598</a><br>
                    <br>
                    <br>
                    On 07.12.2016 22:58, Denis Rouzaud wrote:<br>
                    <blockquote type="cite">Hi Matteo,<br>
                      <br>
                      The file is not present simply because you did not
                      install QGIS.<br>
                      <br>
                      See here
                      <a class="gmail-m_3151282071394212205moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/master/python/CMakeLists.txt#L287" target="_blank">https://github.com/qgis/QGIS/<wbr>blob/master/python/CMakeLists.<wbr>txt#L287</a><br>
                      <br>
                      <br>
                      Having it documented somewhere would be nice:<br>
                      <br>
                      * Approach when installing<br>
                      <br>
                      * Without
                      installing: were to put libqgis_customwidget and<br>
                      qgis_customwidgets.py, how to run pyuic.<br>
                      <br>
                      <br>
                      Cheers,<br>
                      <br>
                      Denis<br>
                      <br>
                      On 12/07/2016 10:41 AM, matteo wrote:<br>
                      <blockquote type="cite">Hold on.. I
                        should have manage it..<br>
                        <br>
                        I discovered that my machine was missing the
                        file<br>
                        <br>
                        qgis_customwidgets.py<br>
                        <br>
                        in the folder<br>
                        <br>
/usr/lib/python2.7/dist-<wbr>packages/PyQt4/uic/widget-<wbr>plugins/<br>
                        <br>
                        <br>
                        in another machine I found that file and I
                        copied it in the right folder<br>
                        (the above one) and now it seems working, that
                        is the plugin with the<br>
                        custom widget is now correctly loaded without
                        any more issues..<br>
                        <br>
                        So many thanks Denis for the assistance..<br>
                        <br>
                        <br>
                        My question is now.. why was that file missing
                        in the folder?<br>
                        In the other machine I ran Ubuntu and I was used
                        to compile QGIS with<br>
                        debian rules.<br>
                        In this new machine I compile QGIS with make and
                        run it directly from<br>
                        the output folder (so QGIS has never been
                        installed with repository<br>
                        packages and/or deb files, don't know if this
                        could be related to the<br>
                        problem)<br>
                        <br>
                        I have some confusion on my mind..<br>
                        <br>
                        If this is worth I can put this solution (if you
                        think it is a solution<br>
                        and not a workaround) somewhere in the website
                        or another place so that<br>
                        other people facing the same problem could solve
                        the issue.<br>
                        <br>
                        Many many thanks to all<br>
                        <br>
                        Matteo<br>
                      </blockquote>
                      <br>
                      <br>
                      <br>
                      ______________________________<wbr>_________________<br>
                      Qgis-developer mailing list<br>
                      <a class="gmail-m_3151282071394212205moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
                      List info:
                      <a class="gmail-m_3151282071394212205moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
                      Unsubscribe:
                      <a class="gmail-m_3151282071394212205moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
                      <br>
                    </blockquote>
                    <br>
                    -- <br>
                    Marco Bernasocchi<br>
                    OPENGIS.ch - <a href="http://berna.io" target="_blank">berna.io</a> - <a href="http://27summits.ch" target="_blank">27summits.ch</a><br>
                    <br>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      -- <br>
      Marco Bernasocchi (mobile).<br>
      <a href="http://OPENGIS.ch" target="_blank">OPENGIS.ch</a>
      - <a href="http://berna.io" target="_blank">berna.io</a> -
      <a href="http://27summits.ch" target="_blank">27summits.ch</a>
    </blockquote>
    <br>
  </div></div></div>

<br>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>