<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>I have found the same problem on FreeBSD if custom widgets are
      not installed.</p>
    <p>My solution at least on FreeBSD and Windows (osgeo4w) use your
      .ui (it's only a XML), search this:</p>
    <p>  <customwidget><br>
         <class>YOUR CUSTOM WIDGET</class><br>
         <extends>YOUR CUSTOM WIDGET</extends><br>
         <header>YOUR CUSTOM WIDGET.h</header><br>
        </customwidget></p>
    <p>and change the line containing a C++ header: <br>
    </p>
    <p><header>YOUR CUSTOM WIDGET.h</header></p>
    <p> by :</p>
    <p><header>qgis.gui</header></p>
    <p><br>
    </p>
    <p>Regards.</p>
    <p>Loïc<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 28.09.2017 16:54, Enrico Ferreguti
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJy=XtcFF-gEwoMYvm6Ugqqub512BGA3AceLdNufBjzcXqEdbg@mail.gmail.com">
      <div dir="ltr">
        <div>I'm getting the following exception:<br>
          <br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>AttributeError:
            unknown enum QgsMapLayerProxyModel::<wbr>RasterLayer</span><br>
        </blockquote>
        <div><br>
          loading a plugin with QGIS custom QT designer widget in
          windows standalone QGIS 2.14 ltr and 2.18.<br>
          <br>
        </div>
        <div>The exception doesn't affect linux and osgeo4win
          installations.<br>
          <br>
        </div>
        <div>I found that this was a 2015 reported issue: <a
            href="https://issues.qgis.org/issues/13428"
            moz-do-not-send="true">https://issues.qgis.org/issues/13428</a><br>
        </div>
        <div>and I solve it as suggested in <a
href="https://lists.osgeo.org/pipermail/qgis-developer/2015-September/039196.html"
            moz-do-not-send="true">https://lists.osgeo.org/pipermail/qgis-developer/2015-September/039196.html</a>
          simply copying a file in the right place.<br>
          <br>
        </div>
        <div>The fix is apparently easy and considering that Qt custom
          widgets are widely used I can't figure why this old issue
          isn't yet solved.<br>
          <br>
        </div>
        <div>Is it a qgis or an osgeo4win issue? Should I reopen a
          ticket?<br>
          <br>
        </div>
        <div>Thanks. Enrico Ferreguti.<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <br>
  </body>
</html>