Details
-
Bug
-
Resolution: Done
-
P4: Low
-
Some future release
-
None
Description
the second example in Detailed Description
here http://qt-project.org/doc/qt-5.0/qtsql/qsqltablemodel.html
for QSqlTableModel has nothing to do with it .
the example is about QSqlQueryModel not QSqlTableModel.
you can change it to
QSqlTableModel model;
model.select();
int salary = model.record(4).value("salary").toInt();
Attachments
For Gerrit Dashboard: QTBUG-35860 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
140798,4 | Doc: corrected snippet QSqlTableModel | 5.6 | qt/qtbase | Status: MERGED | -2 | 0 |