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

QSqlTableModel::fieldIndex() returns logicalIndex or visualIndex?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.12.3
    • Documentation, SQL Support
    • None

    Description

      It's necessary to point out that QSqlTableModel::fieldIndex() returns logicalIndex rather than visualIndex of a filed , which might be used with https://doc.qt.io/qt-5/qheaderview.html
      I have wasted a lot of time for not knowing the type of index QSqlTableModel::fieldIndex() returns

      Attachments

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

        Activity

          People

            treinio Topi Reiniƶ
            philip Philip Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes