Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.6.2
-
55c32b91a298d52bd7c29968d21b4b7a5ee741e4
Description
The help text on page "Qt 4.6: QSqlTableModel Class Reference" has the following example:
QSqlTableModel model;
model.setTable("employee");
QString name = model.record(4).value("name").toString();
The code snippet above extracts the salary field from record 4 in the result set of the query SELECT * from employee.
– it looks to me like it extracts the "name" field...