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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.2
    • 5.10
    • Core: Item Models
    • None
    • Windows
    • 4ec5622e62e6fd521e1193f1d6084901f09e7e9e

    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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes