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

Lauri Kajan lauri.kajan at gmail.com
Sat Sep 26 00:06:43 PDT 2015


I filed a bug http://hub.qgis.org/issues/13428

-Lauri

On Thu, Sep 24, 2015 at 7:06 PM, Luigi Pirelli <luipir at gmail.com> wrote:

> Hi Anita
>
> right click on sourceLayerCombo, in the contextual menu there is
> "Promoted Widgets" or "Promote to", there will open the menu with
> QgsMapLayerComboBox listed. You can find it's name in "Promoted
> class"... the error is that in the Line text "header file" have to
> write  the python module name that contain the class. In you case the
> module name (without .py) that contain the class
> QgsMapLayerComboBox... I suppose it would be "qgis.gui".
>
> here more details:
> http://doc.qt.io/qt-4.8/designer-using-custom-widgets.html
>
> 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 21 September 2015 at 19:51, Anita Graser <anitagraser at gmx.at> wrote:
> > Thanks for you reply Luigi!
> >
> > On Sat, Sep 19, 2015 at 10:30 PM, Luigi Pirelli <luipir at gmail.com>
> wrote:
> >>
> >> 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
> >
> >
> > Sorry, I don't know where to look for the settings to correctly include
> > promoted widgets.
> > Here's a screenshot of Creator:
> >
> https://www.dropbox.com/s/xx2aftbwoaum4u4/Screenshot%202015-09-21%2019.06.59.png?dl=0
> > Could you point out where the include should be added? Thansk a lot!
> >
> > Best wishes,
> > Anita
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150926/d9653091/attachment.html>


More information about the Qgis-developer mailing list