diff options
author | David Boddie <david.boddie@nokia.com> | 2010-09-06 12:33:28 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-09-06 12:33:28 (GMT) |
commit | b3de9c2ee4c9f36a6133fc78109909c3ee6317fd (patch) | |
tree | 3d0ca078d56246cb0f7f8626cc54d642f45bb641 /doc/src/declarative | |
parent | ca68786e62e0e645b692dc19a87b7dc3b2219ffd (diff) | |
parent | 6892d7adf00d0481103a48a1ff89ad0be2a1143b (diff) | |
download | Qt-b3de9c2ee4c9f36a6133fc78109909c3ee6317fd.zip Qt-b3de9c2ee4c9f36a6133fc78109909c3ee6317fd.tar.gz Qt-b3de9c2ee4c9f36a6133fc78109909c3ee6317fd.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'doc/src/declarative')
-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. |