I have a custom form created with QT Designer on which I have several comboboxes among other stuff. All the fields have the correct names corresponding to the database.
But something weird and frustrating happens when I'm trying to use the form in QGIS. All the comboboxes except one, when I click on them, they display duplicate values of the original values I have designed them with. E.g if the combobox originally has the values 1,2 and 3, when I click on it, it displays 1,2,3,1,2,3 or 1,2,3,2,3 or 1,2,3,3,1 or some other combination of the existing values.
If I choose from the first tuple of the values (the original ones), nothing is stored in the database. If I choose a value from the duplicates it is correctly stored. The one combobox that displays only the correct values (no duplicates) doesn't store anything in the database. What's up with that?