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

C++/QML interface does not return proper JavaScript Array

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.4.0 Beta
    • None
    • OS X 10.10
    • macOS

    Description

      import QtQuick 2.3
      
      DropArea{
          keys: ["A","B","C"]
          Component.onCompleted: {
              console.log(JSON.stringify(keys));
          }
      }
      

      Output:

      {"0":"A","1":"B","2":"C"}
      

      It seems that QML creates number string keys in the Array object. This manner is very slow for huge data.
      The output should be:

      [”A”,”B”,”C”]
      

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            sqq S.Gold
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes