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

QSortFilterProxyModel: When a filter changes that effects both the parent and children items it can lead to a crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.8.3
    • 4.8.2
    • Widgets: Itemviews
    • None
    • 9338a26614ce6a50a6c1d30e40dfaceacdfd4912 (4.8)

    Description

      QSortFilterProxyModel: When a filter changes that effects both the parent and children items it can lead to a crash. In the attached example it changes the filter and then invalidates it which then causes a crash. This is because when it is checking the child items it calls createMapping() which invalidates the list it is iterating over.

      Attachments

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

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes