Qt 6.11 is out! See what's new in the release
blog
QSqlTableModel and delete rows
General and Desktop
1
Posts
1
Posters
686
Views
1
Watching
-
Hi
I am attempting to use QSqlTableModel to delete rows from an Sqlite database. -
@
model->select();
bool b = model->removeRows(0,200);
model->submitAll();
@
The return value is false, so I thought I would get the last error using
@
QSqlError e = model->lastError();
@
However, this error has a type of NoError and all the error strings are emptyCan someone tell me what I am doing wrong?
Thanks