Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.10.1
-
None
Description
The documentation "Data Type Conversion Between QML and C++" has the following text in the section "Sequence Type to JavaScript Array" (http://doc.qt.io/qt-5/qtqml-cppintegration-data.html#sequence-type-to-javascript-array):
"Certain C++ sequence types are supported transparently in QML as JavaScript Array types."
The "as Array types" can be understood as that the types are appearing like real Array objects, e.g. having Array.prototype as their prototype and any other properties/methods on them.
Though the current QML implementation does not meet that expectation, and elsewhere (e.g. https://bugreports.qt.io/browse/QTBUG-45018) is said the types are "array like object".
So the documentation would need to be updated to be more precise here, and ideally also list all the properties & methods which one can expect here from "array like object".
Attachments
For Gerrit Dashboard: QTBUG-67775 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
226646,2 | Minor tweak to the docs for sequence types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |