Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.sql.models.qsqlquerymodel.cpp

//! [0]
    while (myModel->canFetchMore())
        myModel->fetchMore();
//! [0]


//! [1]
    QSqlQueryModel model;
    model.setQuery("select * from MyTable");
    if (model.lastError().isValid())
        qDebug() << model.lastError();
//! [1]



Generated by  Doxygen 1.6.0   Back to index