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

ListModel with WorkerScript: rowsAboutToBeXxx is emitted after the change

    XMLWordPrintable

Details

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

    Description

      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().

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes