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 <anitagra...@gmx.at> wrote:
> Thanks for you reply Luigi!
>
> On Sat, Sep 19, 2015 at 10:30 PM, Luigi Pirelli <lui...@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to