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

splice of QStringList in QML no longer working

    XMLWordPrintable

Details

    • c648598a8ba8bf72b5d556211df877578d5f5b64

    Description

      The splice function on the QStringList and QList<QString> objects exposed to QML stops working as expected (still can find the target, but can't remove it), While plain JS string list works fine. Attached is some simple code to re-produce this, and the following is the console log output:
      original stringlist: 3 (qrc:/tmp.qml:8)
      splice of stringlist: bbb (qrc:/tmp.qml:12)
      stringlist after splice: 3 (qrc:/tmp.qml:13)
      ................ (qrc:/tmp.qml:15)
      original list of string: 3 (qrc:/tmp.qml:18)
      splice of list of string: bbb (qrc:/tmp.qml:22)
      list of string after splice: 3 (qrc:/tmp.qml:23)
      ................ (qrc:/tmp.qml:25)
      original JS string list: 3 (qrc:/tmp.qml:28)
      splice of JS string list: bbb (qrc:/tmp.qml:32)
      JS string list after splice: 2 (qrc:/tmp.qml:33)

      Attachments

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

        Activity

          People

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            xizzhu Xizhi Zhu (Steven)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes