How to update the list of items in the combobox delegate which represents the data of a QSqlRelationalTableModel?

Rafal Obrzud <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CAPyeuTE-fxKPCtV1Tx90bpRqC8G80madJb7=uK2y89cF-szSMA@mail.gmail.com>
I've recently examined an example from Chapter 15 of “Rapid GUI Programming
with Python and Qt” by Mark Summerfield which presents the use of SQL
Database TableView modelling. In this original example, I found a little
dysfunctionality which prevents the table views from refreshing combobox
delegates (being QSqlRelation). Simply, the combobox delegates in the table
view which represent the data of QSqlRelationalTableModel, are not updated
once relational tables have been modified.
I describe the problem in detail under the following link:
https://stackoverflow.com/q/59482845/12597742?sem=2

How can I programmatically update the list of items in the combobox
delegate (QSqlRelation) in a table view which represents
QSqlRelationalTableModel data?

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.