Qt Reference Documentation

QML Basic Type: list

A list of objects. While not technically a basic type, QML also supports lists of object types. When used from QML, the engine automatically appends each value to the list.

For example, the Item class contains a list property named children that can be used like this:

 Item {
     children: [
         Item { id: child1 },
         Rectangle { id: child2 },
         Text { id: child3 }
     ]
 }

child1, child2 and child3 will all be added to the children list in the order in which they appear.

See also QML Basic Types.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.