QSqlTableModel don't set Dirty Flag..
I delete row remove from QSqlTableModel but it doesn't show dirty flag & submitAll() doesn't work..
What's wrong with my code?
QSqlTableModel.isDirty(); //return false
QSqlTableModel.submitAll(); //No changes to database@
Doesn't "isDirty":http://doc.qt.nokia.com/4.8-snapshot/qsqltablemodel.html#isDirty take a QModelIndex?
What does submitAll return?
Is your code really like QSqlTableModel.submitAll();?
Because that doesn't seem to be valid C++ code.
Can it detect the whole table?
Not that way
If index is invalid or points to a non-existing row, false is returned.
You could listen to the dataChanged() signal however.