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

Still referenced objects are deleted during swap operation between two ListModel instances

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I'm trying to swap elements of two ListModel instances.

      For this both models are iterated and the data is read and stored in a javascript array. Then both models are cleared.

      After that the two arrays should be added to the other model respectively.

      But at the moment the models are cleared my array contents become invalid and error messages are logged to the console.

      I have reproduced this behavior in a minimal example. See attachment.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            cyril Harald Prasser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes