<div dir="ltr">I filed a bug <a href="http://hub.qgis.org/issues/13428">http://hub.qgis.org/issues/13428</a><div><br></div><div>-Lauri</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 7:06 PM, Luigi Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Anita<br>
<br>
right click on sourceLayerCombo, in the contextual menu there is<br>
"Promoted Widgets" or "Promote to", there will open the menu with<br>
QgsMapLayerComboBox listed. You can find it's name in "Promoted<br>
class"... the error is that in the Line text "header file" have to<br>
write  the python module name that contain the class. In you case the<br>
module name (without .py) that contain the class<br>
QgsMapLayerComboBox... I suppose it would be "qgis.gui".<br>
<br>
here more details: <a href="http://doc.qt.io/qt-4.8/designer-using-custom-widgets.html" rel="noreferrer" target="_blank">http://doc.qt.io/qt-4.8/designer-using-custom-widgets.html</a><br>
<br>
regards<br>
<span class="im HOEnZb">Luigi Pirelli<br>
<br>
**************************************************************************************************<br>
* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" rel="noreferrer" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>
* Elance: <a href="https://www.elance.com/s/edit/luigipirelli/" rel="noreferrer" target="_blank">https://www.elance.com/s/edit/luigipirelli/</a><br>
* GitHub: <a href="https://github.com/luipir" rel="noreferrer" target="_blank">https://github.com/luipir</a><br>
* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" rel="noreferrer" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>
* Mastering QGIS:<br>
<a href="https://www.packtpub.com/application-development/mastering-qgis" rel="noreferrer" target="_blank">https://www.packtpub.com/application-development/mastering-qgis</a><br>
**************************************************************************************************<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">On 21 September 2015 at 19:51, Anita Graser <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>> wrote:<br>
> Thanks for you reply Luigi!<br>
><br>
> On Sat, Sep 19, 2015 at 10:30 PM, Luigi Pirelli <<a href="mailto:luipir@gmail.com">luipir@gmail.com</a>> wrote:<br>
>><br>
>> I imagine that the fix would be in the QT Creator ui project setting<br>
>> correctly the include for the promoted widgets (the widget promoted to<br>
>> a QgsFieldComboBox)... so the error should be in the<br>
>> cartogram_dialog_base.ui project<br>
>><br>
>> let us know<br>
><br>
><br>
> Sorry, I don't know where to look for the settings to correctly include<br>
> promoted widgets.<br>
> Here's a screenshot of Creator:<br>
> <a href="https://www.dropbox.com/s/xx2aftbwoaum4u4/Screenshot%202015-09-21%2019.06.59.png?dl=0" rel="noreferrer" target="_blank">https://www.dropbox.com/s/xx2aftbwoaum4u4/Screenshot%202015-09-21%2019.06.59.png?dl=0</a><br>
> Could you point out where the include should be added? Thansk a lot!<br>
><br>
> Best wishes,<br>
> Anita<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>