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

ListView and QAbstractListModel: Delegate is not destroyed immediately after endRemoveRows() call.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.2.1
    • None

    Description

      When QAbstractListModel-based model is used for ListView, calling QAbstractListModel::endRemoveRows() does not immeidately trigger delegate removal from ListView.

      In my case model contains QObjects and calling QObject::deleteLater() after QAbstractListModel::endRemoveRows() leads to the object deleted before a delegate. The result is that delegate has broken bindings for a short period.

      A simple test application is attached.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            trollixx Oleg Shparber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes