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

QSortFilterModel don't add valid indices on source model dataChanged()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10
    • Core: Item Models
    • None
    • Windows

    Description

      I have a QSortFilterModel with dynamic sort/filter and enabled recursive filtering. When I set data (accepted by filters) for child of filtered out index, child doesn't show up, but it's parent does.

      That happens because of QSortFilterProxyModelPrivate::_q_sourceDataChanged: in recursive mode it pushes parent indices to the end of data_changed_list, but then iterates it from the begin, source parent still doesn't have a mapping, so filter model skip child.

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            roman.yushkov Roman Yushkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes