Use QSqlQueryModel or QSqlRelationalTableModel if the main table contains foreign keys to other tables and you simply want to subsitute them with a column from a related table.
Note that QSqlQueryModel is a read-only model.
Use QSqlQueryModel or QSqlRelationalTableModel if the main table contains foreign keys to other tables and you simply want to subsitute them with a column from a related table.
Note that QSqlQueryModel is a read-only model.
Sure, QSqlQueryModel can not use because I will need to change the information. I still I have a QSpinBox (not delegate), which put the value in a certain field. Any suggestions?
Have a look at QDataWidgetMapper.
Bookmarks