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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.10
    • Fix Version/s: None
    • Component/s: Core: Item Models
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            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