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

QML_SEQUENTIAL_CONTAINER doesn't work with lists of object types

XMLWordPrintable

    • 76ff39646820ff2ba8f6bc2b61cb7c2848853f56 8dc33d3672420d4a21931492b12ce6691cdab435

      If you declare a list of object types like this, at least qmlcachegen and qmlsc won't figure out what the value type is:

      class QmlVectorRenderGeometry
      {
          Q_GADGET
          QML_FOREIGN(QList<QmlRenderGeometry*>)
          QML_ANONYMOUS
          QML_SEQUENTIAL_CONTAINER(QmlRenderGeometry*)
      };
      

      Apparently QML_SEQUENTIAL_CONTAINER only works with value types, not with object types as elements of the list.

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

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes