summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-05 05:59:53 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-05 06:16:02 (GMT)
commitcec070f3905bcf6127e4e14236d5c61f09e3a61f (patch)
tree06faf509fa0cb41c380ce5b7010347ca87727592 /doc/src/declarative
parent2dce4fa74240ff758da1d1bd9c01d628c753c055 (diff)
downloadQt-cec070f3905bcf6127e4e14236d5c61f09e3a61f.zip
Qt-cec070f3905bcf6127e4e14236d5c61f09e3a61f.tar.gz
Qt-cec070f3905bcf6127e4e14236d5c61f09e3a61f.tar.bz2
Document the vector3d type in QML
Task-number: QTBUG-5334 Reviewed-by: Aaron Kennedy
Diffstat (limited to 'doc/src/declarative')
-rw-r--r--doc/src/declarative/basictypes.qdoc21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/src/declarative/basictypes.qdoc b/doc/src/declarative/basictypes.qdoc
index 80ec211..0551443 100644
--- a/doc/src/declarative/basictypes.qdoc
+++ b/doc/src/declarative/basictypes.qdoc
@@ -233,4 +233,25 @@
\endqml
\c Child1, \c Child2 and \c Child3 will all be added to the children list
in the order in which they appear.
+
+ \target basicqmlvector3d
+ \section1 vector3d
+
+ A \c vector3d is specified in \c "x,y,z" format:
+
+ \qml
+ Rotation { angle: 60; axis: "0,1,0" }
+ \endqml
+
+ or with the \c{Qt.vector3d()} helper function:
+
+ \qml
+ Rotation { angle: 60; axis: Qt.vector3d(0, 1, 0) }
+ \endqml
+
+ or as separate \c x, \c y, and \c z components:
+
+ \qml
+ Rotation { angle: 60; axis.x: 0; axis.y: 1; axis.z: 0 }
+ \endqml
*/