C++ (Qt)QSqlQueryModel *qmodel = new QSqlQueryModel;qmodel->setQuery(...);...while (qmodel->canFetchMore()) qmodel->fetchMore(); ...