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

QIdentityProxyModel with an empty model, headerData gets wrong section

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.0
    • Widgets: Itemviews
    • None
    • Ubuntu 12.04

      When using an QIdentityProxyModel with a model that has 0 rows or columns, the headerData function gets section = -1, which is not the same as when not using the QIdentityProxyModel

      I have attached some code that reproduces the bug.

        1. identity_bug.tgz
          1.0 kB
          Filipe Roque
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            flip Filipe Roque
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes