summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-09-03 01:41:12 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-09-03 01:41:12 (GMT)
commite0d41e566c49532dba6ed7eeb6a826f80e11c119 (patch)
treeffafd922e6ec078488b1e1bdd2c3ebcddf686f2f /doc
parentcdf73a54170347eb2c0b4d048da3e9aa87e756c4 (diff)
downloadQt-e0d41e566c49532dba6ed7eeb6a826f80e11c119.zip
Qt-e0d41e566c49532dba6ed7eeb6a826f80e11c119.tar.gz
Qt-e0d41e566c49532dba6ed7eeb6a826f80e11c119.tar.bz2
Doc
QTBUG-12665
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/extending.qdoc10
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.