[Qgis-developer] custom forms with qt4 - problem with combo box

Denis Rouzaud denis.rouzaud at gmail.com
Wed Jul 3 00:32:53 PDT 2013


Hi Stefan,

First, you should not set the combo box as "editable" in Qt-Designer 
[0]. It is not aimed at working like this. Only the QGIS field must be 
"editable".

Second, have you correctly set up the field as a value relation or a 
value map?

Cheers,

Denis

[0] http://hub.qgis.org/issues/4749



On 07/03/2013 09:26 AM, Stefan Sylla wrote:
> Dear qgis-devs,
>
> I am creating a custom form with Qt4-Editor based on these great hints from
> here
>
> http://linfiniti.com/2009/11/creating-dynamic-forms-a-new-feature-headed-for-qgis-1-4/
> http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/
>
> When I open the form in QGIS for editing my layer, I get a problem using an
> 'editable' ComboBox that I created in Qt4. I can input new data, but the
> dropdown list is not working. I can click on the dropdown button but the
> list does not appear, even though there are already values stored in that
> respective column.
> When I change the layer field properties in QGIS to not editable (untick the
> editable check box), the dropdown list is working, but I cannot edit the
> field anymore.
>
> Any ideas what is going wrong here?
>
> Stefan
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/custom-forms-with-qt4-problem-with-combo-box-tp5063731.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> 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/20130703/ad5a013c/attachment.html>


More information about the Qgis-developer mailing list