#define QSQL_PREFETCH 255...void QSqlQueryModel::fetchMore(const QModelIndex &parent){ Q_D(QSqlQueryModel); if (parent.isValid()) return; d->prefetch(qMax(d->bottom.row(), 0) + QSQL_PREFETCH);}
while (myModel->canFetchMore()) { myModel->fetchMore();}