OK thanks.
I am using a QSqlRelationalTableModel and a QDataWidgetMapper. What is the best way to manage transactions?
OK thanks.
I am using a QSqlRelationalTableModel and a QDataWidgetMapper. What is the best way to manage transactions?
Your model is a subclass of QSqlTableModel that has a QSqlTableModel::database() member which gives you access to the database that in turn has methods called QSqlDatabase::transaction(), QSqlDatabase::rollback() and QSqlDatabase::commit().
Thanks again for that.
Bookmarks