diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-09-03 08:15:01 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-09-03 08:15:01 (GMT) |
commit | 1dc5853f7dc40fd18cc5674d89ebc327514449f4 (patch) | |
tree | 7a7b00f3b084086efabf8d2d6bb88f244812789a /doc | |
parent | adcb5f115ff768fe68883f392c00e6d2945a377c (diff) | |
parent | 9311f0554b885f6b3ab1ab77f9c65b9f89865675 (diff) | |
download | Qt-1dc5853f7dc40fd18cc5674d89ebc327514449f4.zip Qt-1dc5853f7dc40fd18cc5674d89ebc327514449f4.tar.gz Qt-1dc5853f7dc40fd18cc5674d89ebc327514449f4.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/extending.qdoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/declarative/extending.qdoc b/doc/src/declarative/extending.qdoc index 6388764..0cc989d 100644 --- a/doc/src/declarative/extending.qdoc +++ b/doc/src/declarative/extending.qdoc @@ -674,6 +674,16 @@ declaring a new property, and the corresponding C++ type. \row \o variant \o QVariant \endtable +From QML you can also declare object and list properties using any element name +like this: + +\code + property QtObject objectProperty + property Item itemProperty + property MyCustomType customProperty + property list<Item> listOfItemsProperty +\endcode + QML supports two methods for adding a new property to a type: a new property definition, and a property alias. |