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.
One of these comboboxes has a strange behavior. When I choose a value from the dropdown it is properly stored in the database. I can see it in the attributes table. But when I'm trying to edit the values on the form, every other value (either on other comboboxes, text fields or checkboxes) displays correctly, except the one combobox that always displays the first value in the dropdown menu despite the fact that some other value may be stored in the database.
Any thoughts on what's wrong?