Important: Please read the Qt Code of Conduct -

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?


  • Perhaps use a custom delegate?

Log in to reply