Editable table view using QSqlRelationalTableModel with specifications for foreign keys
-
Hello all,
I'm trying to create an editable table view that, when editing the relational cells, will bring only specific options in the combobox.
for example, let say there are 'STUDENT' table, in that table there is foreign key to a 'CARD' table, and, when editing this column in the table view, we can only choose unused cards according to some select.
any ideas?
Thanks,
G. -
Perhaps use a custom delegate?