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

ListModel with WorkerScript: rowsAboutToBeXxx is emitted after the change

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.3.0
    • None

      When ListModel is used with a WorkerScript, these signals are emitted after the actual changed:

      • QAbstractItemModel::rowsAboutToBeInserted()
      • QAbstractItemModel::rowsAboutToBeMoved()
      • QAbstractItemModel::rowsAboutToBeRemoved()

      They must be emitted before the change instead. QQmlListModelWorkerAgent must first call beginInsert/Move/RemoveRows(), then sync(), and finally call endInsert/Move/RemoveRows().

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

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes