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

QQmlListProperty returned from Q_INVOKABLE method is unusable

    XMLWordPrintable

Details

    Description

      When returning a QQmlListProperty from a Q_INVOKABLE method, it will be marshalled into a QVariant holding the list property, which is unusable from QML (i.e. cannot access .length, or use operator[]).

      See also:

      https://github.com/milianw/playground-qqmllistproperty/commit/3de44e7e1881e7073610f14de43c2111b707430e

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            milianw Milian Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes