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

ListModel.sync() leaves one model object hanging

    XMLWordPrintable

Details

    Description

      Insert item to ListModel just before refeshing the model in WorkerScript.

      Expected result: After sync the changes in worker thread are synced with the main thread.

      Actual result: One model data object with undefined roles is left hanging around.

      See attached code example, where the model is refreshed with WorkedScript after 5 second Timer timeout. GridView shows ten items even though ListModel count is 9.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes