QSqlTableModel has several strategies to govern if/when it commits changes to the underlying database. What is your editStrategy() ?