[Qgis-developer] QGIS Custom Widget in Qt Designer

Denis Rouzaud denis.rouzaud at gmail.com
Tue Dec 6 22:04:00 PST 2016


Hi Matteo,

Having the error on master sounds correct, since QgsColorButtonV2 really
doesn't exist anymore (replaced by QgscolorButton [0]).

As I wrote already in the topic, issues seem to arise when using
uic.loadUi. Are you using this approach?

Personally, I use pyuic without any issue (you just need to be sure that
you have qgis in your python path, which requires attention in your case
since you don't install qgis).

Best wishes,

Denis


[0] https://github.com/qgis/QGIS/blob/master/doc/api_break.dox#L75


On 12/06/2016 06:11 PM, matteo wrote:
> Hi all,
>
> I'm currently compiling both master and release_2_18 on a linux machine
> (with make, not debian rules, and I run them directly from the output
> folder, thanks Matthias for the advice ;))
>
> I set the WITH-CUSTOMWIDGET ON for both qgis2_18 and master (not sure if
> this is needed)
>
> To have the QGIS Widgets in Qt Designer I also had to install
> liqgis-customwidgets and the 2 dependencies (libqgis-core and libqgis-gui)
>
> But, even with this settings a custom and empty plugin (so just a simple
> plugin build with the Plugin Builder), if the UI has some QGIS Widgets,
> with all widget I get this error:
>
> ImportError: No module named qgscolorbuttonv2
>
> I find this workaround:
>
> https://lists.osgeo.org/pipermail/qgis-developer/2016-August/044138.html
>
>
> I was just wondering if this is the normal behavior of if my machine
> needs some more settings
>
>
> Thanks to all
>
> Matteo
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161207/4fdb78f6/attachment.html>


More information about the Qgis-developer mailing list