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

send array from qml to c++

    XMLWordPrintable

Details

    • All
    • c16a3e5ad (dev), f5f99985b (6.7), 66b4f3262 (tqtc/lts-6.5)

    Description

      Send array from c++ to qml like below, it's OK

      std::vector<std::vector<int> > getDataFromCPP2QML();

      but, if send array from qml to c++ like this:

      void setDataFromQML2CPP(const std::vector<std::vector<int> > array);

      Array in qml is: [ [1, 2, 3],  [4, 5] ]

      but in CPP, it will be: [ [1, 2, 3], [1, 2, 3, 4, 5] ], data duplication

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            hnzhw2000 z z
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes