[Qgis-developer] Plugin with custom QGIS-Qt Widget for master

Denis Rouzaud denis.rouzaud at gmail.com
Mon Mar 6 02:21:24 PST 2017


There should be no need to manual editing of the file.

In the described example, one issue could be the 3.0 API change:
QgsColorButtonV2 doesn't exist anymore  in 3.0. So one needs to use the
proper library of custom widgets (Qt5) to be compatible.

If you compile the UI, it is import to add QGIS to the python path so it
can find the custom widgets while compiling.



Le lun. 6 mars 2017 à 10:31, Luigi Pirelli <luipir at gmail.com> a écrit :

> Hi Raymond
>
> in Qt (AFAIR) you can specify the include of the custom UI, so the
> overwrite will be avoided.
> Luigi Pirelli
>
>
> **************************************************************************************************
> * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Mastering QGIS 2nd Edition:
> *
> https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
>
> **************************************************************************************************
>
>
> On 6 March 2017 at 08:42, Raymond Nijssen <r.nijssen at terglobo.nl> wrote:
> > Hi Matteo,
> >
> > I ran into this last week. The solution, or workaround, is here:
> >
> > https://lists.osgeo.org/pipermail/qgis-developer/2016-August/044138.html
> >
> > You need to manually change the output of QtDesigner.
> >
> > Good luck!
> > Raymond
> >
> >
> >
> > On 06-03-17 07:07, Denis Rouzaud wrote:
> >>
> >>
> >> Hi Matteo,
> >>
> >> Are you using a compiled UI file or the UI directly?
> >> Can you point to the source online?
> >>
> >> Denis
> >>
> >>
> >> Le dim. 5 mars 2017 à 22:35, matteo <matteo.ghetta at gmail.com
> >> <mailto:matteo.ghetta at gmail.com>> a écrit :
> >>
> >>     sorry, the error related to the widget is:
> >>
> >>       File
> >>     "/home/matteo/lavori/QGIS/build-qgis33/output/python/qgis/utils.py",
> >>     line 647, in _import
> >>         mod = _builtin_import(name, globals, locals, fromlist, level)
> >>     ImportError: No module named 'qgsmaplayercombobox'
> >>
> >>     Matteo
> >>     _______________________________________________
> >>     Qgis-developer mailing list
> >>     Qgis-developer at lists.osgeo.org <mailto:
> 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
> >>
> >>
> >>
> >> _______________________________________________
> >> 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
> >>
> >
> > --
> > Terglobo
> > Fahrenheitstraat 1
> > 5223 BJ 's-Hertogenbosch
> > 06 25 31 49 83
> >
> > _______________________________________________
> > 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
> _______________________________________________
> 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/20170306/0478dd27/attachment.html>


More information about the Qgis-developer mailing list