diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-09-06 06:41:41 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-09-06 06:41:41 (GMT) |
commit | 4cd5e0dbdf5a8f6142d3961b05dbf35d3144e8cb (patch) | |
tree | 92fb3640aa52ab2b29c35fe4e2be976bd8dc25eb /doc/src | |
parent | 9f56ef9d1538e9edf9dc7bdb3bf696e647c0c092 (diff) | |
parent | 91b1eff723c47fbe12d406a27053eea7d6c4a812 (diff) | |
download | Qt-4cd5e0dbdf5a8f6142d3961b05dbf35d3144e8cb.zip Qt-4cd5e0dbdf5a8f6142d3961b05dbf35d3144e8cb.tar.gz Qt-4cd5e0dbdf5a8f6142d3961b05dbf35d3144e8cb.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'doc/src')
-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. |