Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35860

the second example in Detailed Description for QSqlTableModel has nothing to do with it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • Some future release
    • Some future release
    • Documentation
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vertries Nico Vertriest (Inactive)
            redstoneleo Philip Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes