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

bool QSqlError::isValid (  )  const

Returns true if an error is set, otherwise false.


    QSqlQueryModel model;
    model.setQuery("select * from myTable");
    if (model.lastError().isValid())
        qDebug() << model.lastError();

See also:

Definition at line 253 of file qsqlerror.cpp.

    return errorType != NoError;

Generated by  Doxygen 1.6.0   Back to index