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

        For Gerrit Dashboard: QTBUG-76106
        # Subject Branch Project Status CR V

        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