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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes