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

Unclear documentation about C++ sequence types mapping in QML

    XMLWordPrintable

Details

    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

        Activity

          People

            shausman Simon Hausmann
            kossebau Friedrich W. H. Kossebau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes