Hi,

I guess you need a QSqlTableModel. QueryModel is read only, I suppose.