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

QSortFilterProxyModel: cannot remove items from proxy-to-source mapping

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.11.1
    • Core: Item Models
    • None
    • Windows 10 x64
    • Windows

    Description

      I'm currently using my own QAbstractItemModel and QSortFilterProxyModel.

      When I try to delete an item out of my treeview, the whole thing crahes. But only with the lowest items in the treeview:

      XX

       | ------ XX
       
                  |------ YY

      YY = crash when deleting

      Callstack:

      The error occurs, when calling the beginRemoveRows method of QAbstractItemModel.

      After calling q->beginRemoveRows(.......) in remove_proxy_interval, the proxy_to_source vector doesn't work anymore.

       

      If you need any more infos, just ask.

      Attachments

        1. crash.png
          71 kB
          swiftbrother
        2. crashCallStack.png
          31 kB
          swiftbrother
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dfaure_kdab David Faure
            swiftbrother swiftbrother
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes