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

Anita Graser anitagraser at gmx.at
Wed Aug 5 14:27:23 PDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150805/1e45eac3/attachment.html>


More information about the Qgis-developer mailing list