diff options
author | David Boddie <david.boddie@nokia.com> | 2010-09-06 12:54:55 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-09-06 12:54:55 (GMT) |
commit | 4b68c14af425a3f8441ae0377c178d398192d45a (patch) | |
tree | c6f1fe35f946fde9e0f276d7e3b2c00386fd471d /doc/src/declarative | |
parent | 5cfc65d04858563e53987b224f36ee71356aa73c (diff) | |
parent | b3de9c2ee4c9f36a6133fc78109909c3ee6317fd (diff) | |
download | Qt-4b68c14af425a3f8441ae0377c178d398192d45a.zip Qt-4b68c14af425a3f8441ae0377c178d398192d45a.tar.gz Qt-4b68c14af425a3f8441ae0377c178d398192d45a.tar.bz2 |
Merge branch '4.7' into qmldocs
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. |