I see, I thought you were using QSqlQuery.
You might try connecting to QAbstractItemModel::rowsInserted() signal.
I see, I thought you were using QSqlQuery.
You might try connecting to QAbstractItemModel::rowsInserted() signal.
Too bad. I've checked the sources and it looks like QSqlTableModel (QSqlQueryModel actually) doesn't fetch the data row-by-row, but rather retrieves particular cells as needed in data() using QSqlQuery::seek().
Maybe you could create your own model that will load data using typical while( query.next() ) loop?
Bookmarks