Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7.0
-
None
-
-
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
For Gerrit Dashboard: QTBUG-125429 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
563158,3 | QtQml: Document and uphold precondition of metaTypeFromJS() | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
564108,3 | QtQml: Document and uphold precondition of metaTypeFromJS() | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
564651,4 | QtQml: Document and uphold precondition of metaTypeFromJS() | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | +1 |