blob: e3bce7567f9eb493c1e4e96fe2c60ef5343bd851 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//! [0]
while (myModel->canFetchMore())
myModel->fetchMore();
//! [0]
//! [1]
QSqlQueryModel model;
model.setQuery("select * from MyTable");
if (model.lastError().isValid())
qDebug() << model.lastError();
//! [1]
|