1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
10 | ** Commercial Usage
|
---|
11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
14 | ** written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Free Documentation License
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
20 | ** file.
|
---|
21 | **
|
---|
22 | ** If you have questions regarding the use of this file, please contact
|
---|
23 | ** Nokia at [email protected].
|
---|
24 | ** $QT_END_LICENSE$
|
---|
25 | **
|
---|
26 | ****************************************************************************/
|
---|
27 |
|
---|
28 | /*!
|
---|
29 | \page qdeclarativeelements.html
|
---|
30 | \target elements
|
---|
31 | \title QML Elements
|
---|
32 | \brief A dictionary of standard QML elements.
|
---|
33 |
|
---|
34 | This is a dictionary of all standard QML elements made available
|
---|
35 | in the Qt Declarative module.
|
---|
36 |
|
---|
37 | To see the QML elements listed by functional area, see the
|
---|
38 | \l{Groups Of Related QML Elements} page.
|
---|
39 |
|
---|
40 | \table
|
---|
41 | \header \o {2,1} \bold {Basic Visual Items}
|
---|
42 | \row \o \l {Item} \o Basic item element inherited by all visual items in QML
|
---|
43 | \row \o \l {Rectangle} \o Basic visual rectangle element
|
---|
44 | \row \o \l {Gradient} \o Defines a gradient between two or more colors
|
---|
45 | \row \o \l {GradientStop} \o Defines a color used in a \l {Gradient}
|
---|
46 | \row \o \l {Image} \o Allows the use of bitmaps to a scene
|
---|
47 | \row \o \l {BorderImage} (Item-specific) \o Defines an image as a border
|
---|
48 | \row \o \l {AnimatedImage} \o For playing animations stored as a series of frames
|
---|
49 | \row \o \l {Text} \o Allows the use of formatted text in a scene
|
---|
50 | \row \o \l {TextInput} \o Displays an editable line of text
|
---|
51 | \row \o \l {IntValidator} \o Validator for integer values
|
---|
52 | \row \o \l {DoubleValidator} \o Validator for non-integer values
|
---|
53 | \row \o \l {RegExpValidator} \o Validator for string regular expressions
|
---|
54 | \row \o \l {TextEdit} \o Displays multiple lines of editable formatted text
|
---|
55 |
|
---|
56 | \header \o {2,1} \bold {Basic Interaction Items}
|
---|
57 | \row \o \l {MouseArea} \o Handles mouse interactions
|
---|
58 | \row \o \l {FocusScope} \o For keyboard focus handling
|
---|
59 | \row \o \l {Flickable} \o Provides a surface that can be "flicked"
|
---|
60 | \row \o \l {Flipable} \o Provides a surface that produces flipping effects
|
---|
61 | \row \o \l {GestureArea} (experimental) \o Enables simple gesture handling
|
---|
62 |
|
---|
63 | \header \o {2,1} \bold {States}
|
---|
64 | \row \o \l {State} \o Defines sets of configurations of objects and properties
|
---|
65 | \row \o \l {PropertyChanges} \o Describes property changes within a state
|
---|
66 | \row \o \l {StateGroup} \o Contains a set of states and state transitions
|
---|
67 | \row \o \l {StateChangeScript} \o Allows script binding in a state
|
---|
68 | \row \o \l {ParentChange} (Item-specific) \o Re-parent an Item in a state change
|
---|
69 | \row \o \l {AnchorChanges} \o Change the anchors of an item in a state
|
---|
70 |
|
---|
71 | \header \o {2,1} \bold {Animation and Transitions}
|
---|
72 | \row \o \l {Behavior} \o Specifies a default animation for property changes
|
---|
73 | \row \o \l {SequentialAnimation} \o Runs animations sequentially
|
---|
74 | \row \o \l {ParallelAnimation} \o Runs animations in parallel
|
---|
75 | \row \o \l {PropertyAnimation} \o Animates property changes
|
---|
76 | \row \o \l {NumberAnimation} \o Animates properties of type qreal
|
---|
77 | \row \o \l {Vector3dAnimation} \o Animates properties of type QVector3d
|
---|
78 | \row \o \l {ColorAnimation} \o Animates color changes
|
---|
79 | \row \o \l {RotationAnimation} \o Animates rotations
|
---|
80 | \row \o \l {ParentAnimation} \o Animates parent changes
|
---|
81 | \row \o \l {AnchorAnimation} \o Animates anchor changes
|
---|
82 | \row \o \l {PauseAnimation} \o Pauses an animation
|
---|
83 | \row \o \l {SmoothedAnimation} \o Allows a property to smoothly track a value
|
---|
84 | \row \o \l {SpringAnimation} \o Allows a property to track a value in a spring-like motion
|
---|
85 | \row \o \l {PropertyAction} \o Sets immediate property changes during animation
|
---|
86 | \row \o \l {ScriptAction} \o Runs scripts during an animation
|
---|
87 | \row \o \l {Transition} \o Animates transitions during state changes
|
---|
88 |
|
---|
89 | \header \o {2,1} \bold {Working with Data}
|
---|
90 | \row \o \l {Binding} \o Binds any value to any property
|
---|
91 | \row \o \l {ListModel} \o Defines a list of data
|
---|
92 | \row \o \l {ListElement} \o Defines a data item in a \l {ListModel}
|
---|
93 | \row \o \l {VisualItemModel} \o Contains items that already defines its own visual delegate
|
---|
94 | \row \o \l {VisualDataModel} \o Encapsulates a model and a delegate
|
---|
95 | \row \o \l {Package} \o Collection that enables sharing of items within different views
|
---|
96 | \row \o \l {XmlListModel} \o Specifies a model using XPath expressions
|
---|
97 | \row \o \l {XmlRole} \o Specifies a role for an \l {XmlListModel}
|
---|
98 |
|
---|
99 | \header \o {2,1} \bold {Views}
|
---|
100 | \row \o \l {ListView} \o Provides a list visualization of a model
|
---|
101 | \row \o \l {GridView} \o Provides a grid visualization of a model
|
---|
102 | \row \o \l {PathView} \o Visualizes a model's contents along a path
|
---|
103 | \row \o \l {Path} \o Defines a path used by \l {PathView}
|
---|
104 | \row \o \l {PathLine} \o Defines a line in \l {Path}
|
---|
105 | \row \o \l {PathQuad} \o Defines a quadratic Bezier curve in a \l {Path}
|
---|
106 | \row \o \l {PathCubic} \o Defines a cubic Bezier curve in a \l {Path}
|
---|
107 | \row \o \l {PathAttribute} \o Allows the setting of attributes along a \l {Path}
|
---|
108 | \row \o \l {PathPercent} \o Modifies the item distribution along a \l {Path}
|
---|
109 | \row \o \l {WebView} \o Allows the addition of web content to a canvas
|
---|
110 |
|
---|
111 | \header \o {2,1} \bold {Positioners}
|
---|
112 | \row \o \l {Column} \o Arranges its children vertically
|
---|
113 | \row \o \l {Row} \o Arranges its children horizontally
|
---|
114 | \row \o \l {Grid} \o Positions its children in a grid
|
---|
115 | \row \o \l {Flow} \o Positions its children with wrapping support
|
---|
116 |
|
---|
117 | \header \o {2,1} \bold {Utility}
|
---|
118 | \row \o \l {Connections} \o Explicitly connects signals and signal handlers
|
---|
119 | \row \o \l {Component} \o Encapsulate QML items as a component
|
---|
120 | \row \o \l {Timer} \o Provides timed triggers
|
---|
121 | \row \o \l {QML:QtObject} {QtObject} \o Basic element containing only the objectName property
|
---|
122 | \row \o \l {QML:Qt} {Qt} \o The QML global Qt object provides useful enums and functions from Qt.
|
---|
123 | \row \o \l {WorkerScript} \o Enables the use of threads in QML
|
---|
124 | \row \o \l {Loader} \o Controls the loading of items or components
|
---|
125 | \row \o \l {Repeater} \o Uses a model to create multiples of components
|
---|
126 | \row \o \l {SystemPalette} \o Provides access to the Qt palettes
|
---|
127 | \row \o \l {FontLoader} \o Loads fonts by name or URL
|
---|
128 | \row \o \l {LayoutItem} \o Allows declarative UI elements inside Qt's Graphics View layouts
|
---|
129 |
|
---|
130 | \header \o {2,1} \bold {Transforms}
|
---|
131 | \row \o \l {Scale} \o Assigns item scaling behaviors
|
---|
132 | \row \o \l {Rotation} \o Assigns item rotation behaviors
|
---|
133 | \row \o \l {Translate} \o Assigns item translation behaviors
|
---|
134 |
|
---|
135 | \header \o {2,1} \bold {Effects}
|
---|
136 | \row \o \l {Particles} (experimental) \o Generates and animates particles
|
---|
137 | \row \o \l {ParticleMotionLinear} \o Adds linear motion behavior to \l {Particles}
|
---|
138 | \row \o \l {ParticleMotionGravity} \o Adds gravitational motion to \l {Particles}
|
---|
139 | \row \o \l {ParticleMotionWander} \o Adds varied motions to \l {Particles}
|
---|
140 | \endtable
|
---|
141 |
|
---|
142 |
|
---|
143 |
|
---|
144 | */
|
---|
145 |
|
---|
146 |
|
---|
147 | /*!
|
---|
148 | \group qml-groups
|
---|
149 | \title Groups Of Related QML Elements
|
---|
150 |
|
---|
151 | \brief If you know what kind of QML element you want (Basic Visual,
|
---|
152 | Interaction, Animation, etc), look here.
|
---|
153 |
|
---|
154 | This is a list of functional groups of QML elements.
|
---|
155 |
|
---|
156 | \generatelist{related}
|
---|
157 |
|
---|
158 | */
|
---|
159 |
|
---|
160 | /*!
|
---|
161 | \group qml-basic-visual-elements
|
---|
162 | \title Basic QML Visual Elements
|
---|
163 | \ingroup qml-groups
|
---|
164 |
|
---|
165 | \brief Elements for constructing basic visual items.
|
---|
166 |
|
---|
167 | \generatelist{related}
|
---|
168 |
|
---|
169 | */
|
---|
170 |
|
---|
171 | /*!
|
---|
172 | \group qml-basic-interaction-elements
|
---|
173 | \title Basic QML Interaction Elements
|
---|
174 | \ingroup qml-groups
|
---|
175 |
|
---|
176 | \brief Elements for handling basic interactions.
|
---|
177 |
|
---|
178 | \generatelist{related}
|
---|
179 |
|
---|
180 | */
|
---|
181 |
|
---|
182 | /*!
|
---|
183 | \group qml-state-elements
|
---|
184 | \title QML State Elements
|
---|
185 | \ingroup qml-groups
|
---|
186 |
|
---|
187 | \brief Elements for handling state changes.
|
---|
188 |
|
---|
189 | \generatelist{related}
|
---|
190 |
|
---|
191 | */
|
---|
192 |
|
---|
193 | /*!
|
---|
194 | \group qml-event-elements
|
---|
195 | \title QML Event Elements
|
---|
196 | \ingroup qml-groups
|
---|
197 |
|
---|
198 | \brief Elements for handling events.
|
---|
199 |
|
---|
200 | \generatelist{related}
|
---|
201 |
|
---|
202 | */
|
---|
203 |
|
---|
204 | /*!
|
---|
205 | \group qml-animation-transition
|
---|
206 | \title QML Animation and Transition Elements
|
---|
207 | \ingroup qml-groups
|
---|
208 |
|
---|
209 | \brief Elements for handling animations and transitions.
|
---|
210 |
|
---|
211 | \generatelist{related}
|
---|
212 |
|
---|
213 | */
|
---|
214 |
|
---|
215 | /*!
|
---|
216 | \group qml-working-with-data
|
---|
217 | \title Working With Data in QML
|
---|
218 | \ingroup qml-groups
|
---|
219 |
|
---|
220 | \brief Elements for working with data.
|
---|
221 |
|
---|
222 | \generatelist{related}
|
---|
223 |
|
---|
224 | */
|
---|
225 |
|
---|
226 | /*!
|
---|
227 | \group qml-view-elements
|
---|
228 | \title QML View Elements
|
---|
229 | \ingroup qml-groups
|
---|
230 |
|
---|
231 | \brief Elements for handling views.
|
---|
232 |
|
---|
233 | \generatelist{related}
|
---|
234 |
|
---|
235 | */
|
---|
236 |
|
---|
237 | /*!
|
---|
238 | \group qml-positioning-elements
|
---|
239 | \title QML Positioning Elements
|
---|
240 | \ingroup qml-groups
|
---|
241 |
|
---|
242 | \brief Elements for positioning items.
|
---|
243 |
|
---|
244 | \generatelist{related}
|
---|
245 |
|
---|
246 | */
|
---|
247 |
|
---|
248 | /*!
|
---|
249 | \group qml-utility-elements
|
---|
250 | \title QML Utility Elements
|
---|
251 | \ingroup qml-groups
|
---|
252 |
|
---|
253 | \brief Elements for handling misc operations.
|
---|
254 |
|
---|
255 | \generatelist{related}
|
---|
256 |
|
---|
257 | */
|
---|
258 |
|
---|
259 | /*!
|
---|
260 | \group qml-transform-elements
|
---|
261 | \title QML Transform Elements
|
---|
262 | \ingroup qml-groups
|
---|
263 |
|
---|
264 | \brief Elements for handling transformations.
|
---|
265 |
|
---|
266 | \generatelist{related}
|
---|
267 |
|
---|
268 | */
|
---|
269 |
|
---|
270 | /*!
|
---|
271 | \group qml-particle-elements
|
---|
272 | \title QML Particle Elements
|
---|
273 | \ingroup qml-groups
|
---|
274 |
|
---|
275 | \brief Elements for handling particle effects.
|
---|
276 |
|
---|
277 | \generatelist{related}
|
---|
278 |
|
---|
279 | */
|
---|