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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes