diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-11-23 07:01:23 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-11-23 07:03:31 (GMT) |
commit | d82c96ded2df80e5e923544dd7b2ce3ea722b7ff (patch) | |
tree | 9ee9d1fa8589b8d97c712afe01347bc027d37bd3 /doc/src/declarative/qmlintro.qdoc | |
parent | 4c72b0441380fd43b8ca63c9b7159adfb89c60e6 (diff) | |
download | Qt-d82c96ded2df80e5e923544dd7b2ce3ea722b7ff.zip Qt-d82c96ded2df80e5e923544dd7b2ce3ea722b7ff.tar.gz Qt-d82c96ded2df80e5e923544dd7b2ce3ea722b7ff.tar.bz2 |
Doc.
Diffstat (limited to 'doc/src/declarative/qmlintro.qdoc')
-rw-r--r-- | doc/src/declarative/qmlintro.qdoc | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/doc/src/declarative/qmlintro.qdoc b/doc/src/declarative/qmlintro.qdoc index f84d614..ab9416b 100644 --- a/doc/src/declarative/qmlintro.qdoc +++ b/doc/src/declarative/qmlintro.qdoc @@ -239,8 +239,8 @@ Image { \section2 Default properties -Each object type can specify one of its list properties as its default property. -If a list property has been declared as the default property, the property tag can be omitted. +Each object type can specify one of its list or object properties as its default property. +If a property has been declared as the default property, the property tag can be omitted. For example this code: \code @@ -263,9 +263,27 @@ State { because \c changes is the default property of the \c State type. -\section2 Dot Properties +\section2 Grouped Properties +In some cases properties form a logical group and use a 'dot' or grouped notation +to show this. +Grouped properties can be written like this: +\qml +Text { + font.pixelSize: 12 + font.bold: true +} +\endqml + +or like this: +\qml +Text { + font { pixelSize: 12; bold: true } +} +\endqml + +In the element documentation grouped properties are shown using the 'dot' notation. \section2 Attached Properties \target attached-properties |