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

QSqlTableModel::fieldIndex() returns logicalIndex or visualIndex?

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Documentation, SQL Support
    • Labels:
      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

            • Assignee:
              treinio Topi Reiniƶ
              Reporter:
              philip Philip Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There is 1 open Gerrit change