I have 2 forms, a display form and an options form. You can call the options form from the display form and add or delete records from a database table. The display form has a combo box driven with a model from the database table managed from the options form.

The problem is that when you call the options form from the display form and add or delete a record, the combo box does not get updated, even though there is a signal emitted from the options form and debug statements in the display form slot that show that the number of items in the combo box has been corrected to match the database table. If you look at the database table with a diagnostic tool, it is correct.

If you close the display form and re-open it, it shows the correct values in the combo box, but not if you don't close and re-open it.

I can provide snippets of code if necessary, but yes, the display form slot is public and with debug, you can see the signal is emitted and received in the slot and the database has been updated and the combo box does have the correct values in the slot, but the combo box display just doesn't get updated to show the changes unless you close and re-open the form.

Someone else must have had this problem before and solved it, but I can't find a similar case in the archives.

Any ideas? And tnx for any help.