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

QIdentityProxyModel has no headers when it has zero rows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.8.0, 5.0.0
    • Widgets: Itemviews
    • None
    • 2614e16c41595a5175045e701cd3c2087714436c

    Description

      From an email:

      in QIdentityProxyModel there is a problem with headerData method if the
      model has zero rows.
      In this case no headers are shown because of the implementation of
      QAbstractProxyModel::headerData and index.

      I changed headerData into

      {return sourceModel()->headerData();}

      in my
      subclass and got rid of the problem.
      I reported the problem to digia support and was told they didn't write
      this class and that I should overload the index function in my subclass.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes