[Qgis-developer] Compiling ui files with custom widgets creates wrong imports

Luigi Pirelli luipir at gmail.com
Sat Sep 19 13:30:13 PDT 2015


I imagine that the fix would be in the QT Creator ui project setting
correctly the include for the promoted widgets (the widget promoted to
a QgsFieldComboBox)... so the error should be in the
cartogram_dialog_base.ui project

let us know

regards,



Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**************************************************************************************************


On 5 August 2015 at 23:27, Anita Graser <anitagraser at gmx.at> wrote:
> Hi,
>
> There seems to be an issue with custom widgets in Python. For example this
> plugin bug: ImportError: No module named qgsfieldcombobox
> (https://github.com/informeren/qgis-cartogram/issues/2)
>
> Compiling with
> pyuic4 -o cartogram_dialog_base.py cartogram_dialog_base.ui
> results in
> from qgsfieldcombobox import QgsFieldComboBox
> while it should be
> from qgis.gui import QgsFieldComboBox
>
> Is there some way to fix this on our side?
>
> Best wishes,
> Anita
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list