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

Altering a JavaScript array (possibly object, too?) without replacing it doesn't appear to emit changed signals

    XMLWordPrintable

Details

    Description

      I've witnessed this in a few different scenarios now, but only just now got around to reporting it.

      When one uses JavaScript-based data, one would expect that using methods that alter that data (like push/splice/whatever on an array) would emit the changed signal - as the data has indeed changed.

      It appears this isn't the case, see the attached testcase for one (really simple) example of where I've seen this happen, but I've had to work around it in a number of other areas.

      (NB: I'm pretty sure this affects a lot of other versions too, this is just the one I've tested.)

      Attachments

        1. test.qml
          1 kB
          Robin Burchell

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              w00t Robin Burchell
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes