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

VerticalHeaderView / HorizontalHeaderView should always use headerData() -- stale docs?

    XMLWordPrintable

Details

    • 37d9f3d45 (dev), b2dc306e5 (6.8), c5c1d7736 (6.7), bc30fd0a1 (tqtc/lts-6.5), 3968ef865 (dev), 9ecc9131e (6.8), 303bd79ec (6.7), a544b5777 (tqtc/lts-6.5), f4bc018fa (dev), 4e4e8328c (6.8), 1b42a3405 (6.7), 60976b856 (tqtc/lts-6.5)

    Description

      The docs for VerticalHeaderView::model say

      https://doc.qt.io/qt-6/qml-qtquick-controls-verticalheaderview.html#model-prop

      If model is a QAbstractTableModel, its vertical headerData() will be accessed.

      If model is a QAbstractItemModel other than QAbstractTableModel, model's data() will be accessed.

      Not only this is a wrong behavior, but it seems, it's not the existing behavior at all? Are the docs stale?

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes