I'm trying to add several records to the QSqlTableModel, serially. But when I'm call insertRow method second time without submitting changes, model forgets previous changes. I don't know how many inserts user will make (so I can not call insertRows(n)) and I must have opportunities to roll back changes, so I can't call submit method after each inserting.