summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_kernel_qsqlerror.cpp
blob: e25948c7fef7cfed24635b6e715fb1b4c29286d6 (plain)
1
2
3
4
5
6
//! [0]
QSqlQueryModel model;
model.setQuery("select * from myTable");
if (model.lastError().isValid())
    qDebug() << model.lastError();
//! [0]