<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Stefan,<br>
    <br>
    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".<br>
    <br>
    Second, have you correctly set up the field as a value relation or a
    value map?<br>
    <br>
    Cheers,<br>
    <br>
    Denis<br>
    <br>
    [0]
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="http://hub.qgis.org/issues/4749">http://hub.qgis.org/issues/4749</a><br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/03/2013 09:26 AM, Stefan Sylla
      wrote:<br>
    </div>
    <blockquote cite="mid:1372836386835-5063731.post@n6.nabble.com"
      type="cite">
      <pre wrap="">Dear qgis-devs,

I am creating a custom form with Qt4-Editor based on these great hints from
here

<a class="moz-txt-link-freetext" href="http://linfiniti.com/2009/11/creating-dynamic-forms-a-new-feature-headed-for-qgis-1-4/">http://linfiniti.com/2009/11/creating-dynamic-forms-a-new-feature-headed-for-qgis-1-4/</a>
<a class="moz-txt-link-freetext" href="http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/">http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/</a>

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: <a class="moz-txt-link-freetext" href="http://osgeo-org.1560.x6.nabble.com/custom-forms-with-qt4-problem-with-combo-box-tp5063731.html">http://osgeo-org.1560.x6.nabble.com/custom-forms-with-qt4-problem-with-combo-box-tp5063731.html</a>
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>