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

Cannot create a list property of a custom QML object type

    XMLWordPrintable

Details

    Description

      I'm trying to create a list property containing my own QML objects, e.g.:
      import QtQuick 2.1
      import system.items 1.0 as System

      Rectancle {
      ...
      property list<System.QMLDboAnalog> someObjectList:
      [
      System.QMLDboAnalog

      { id: averageValue objectID: averageValueObjectID }

      // Path Value Objects
      System.QMLDboAnalog

      { id: valuePath1 objectID: pathValueObjectIDList[0] }

      ]

      QtCreator does not like the "System." prefix in the list type.
      Am I doing something wrong here?

      Attachments

        Issue Links

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

          Activity

            People

              aalpert Alan Alpert
              roffaboffa Rolf Moholth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes