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

Assigning an object list to a variant is interpreted as separate object assignments.

    XMLWordPrintable

Details

    Description

      The following prints "myItems is Image"

      import Qt 4.7
      
      Rectangle {
          width: 100; height: 100
          property variant myItems
          myItems: [
              Item {},
              Rectangle {},
              Image {}
          ]
          Component.onCompleted: console.log("myItems is " + myItems)
      }

      Instead, myItems should be a variant wrapping a QObjectList, or something similar.

      Attachments

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

        Activity

          People

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            brasser Michael Brasser (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes