[QGIS-Developer] can't load plugins with QGIS custom widgets in windows
L.Bartoletti
lbartoletti at tuxfamily.org
Thu Sep 28 13:12:28 PDT 2017
Hi,
I have found the same problem on FreeBSD if custom widgets are not
installed.
My solution at least on FreeBSD and Windows (osgeo4w) use your .ui (it's
only a XML), search this:
<customwidget>
<class>YOUR CUSTOM WIDGET</class>
<extends>YOUR CUSTOM WIDGET</extends>
<header>YOUR CUSTOM WIDGET.h</header>
</customwidget>
and change the line containing a C++ header:
<header>YOUR CUSTOM WIDGET.h</header>
by :
<header>qgis.gui</header>
Regards.
Loïc
On 28.09.2017 16:54, Enrico Ferreguti wrote:
> I'm getting the following exception:
>
> AttributeError: unknown enum QgsMapLayerProxyModel::RasterLayer
>
>
> loading a plugin with QGIS custom QT designer widget in windows
> standalone QGIS 2.14 ltr and 2.18.
>
> The exception doesn't affect linux and osgeo4win installations.
>
> I found that this was a 2015 reported issue:
> https://issues.qgis.org/issues/13428
> and I solve it as suggested in
> https://lists.osgeo.org/pipermail/qgis-developer/2015-September/039196.html
> simply copying a file in the right place.
>
> 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.
>
> Is it a qgis or an osgeo4win issue? Should I reopen a ticket?
>
> Thanks. Enrico Ferreguti.
>
>
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170928/94da35c5/attachment.html>
More information about the QGIS-Developer
mailing list