I am trying to build a custom form for field data collection (bird species) with some python logic. The python code inserts values into a QComboBox:
- At the beginning of the list it adds the twenty most often used species
- then follows a separator
- then a complete list of possible species
After finding Custom QGIS feature forms – Value Binding I learned, that I have to set the correct widget type in the "Fields" tab of the layer properties dialog.
Now QLineEdits (Edit Widget -> "Text Edit") and QSpinBoxes (Edit Widget -> "Range") work as intended. But I can't find a widget type that correctly binds the values of my QComboBoxes.
Which type of "Edit Widget" do I have to choose to bind a QComboBox from a Qt custom form?