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

QSqlTableModel::headerData() provides column numbers when row 0 is an inserted row (not in the query)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.2
    • 5.0.0
    • SQL Support
    • None
    • Windows 7 x86
    • a694b9f8d204d6555caf4e30dbd18f536859c5bd

    Description

      The strings come back in play after full update via select(). As far as I can see from the sources, this might be when QSqlTreeModel::headerData() falls down to default implementation of QAbstractItemModel::headerData(). This seems to be the true case for the just inserted columns. See QSqlQueryData::headerData().

      This issue arises even when the set of columns remains unchanged.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            dvolosnykh Dmitry Volosnykh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes