summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/elements.qdoc
blob: 54f07a219f24887488efa97b7a3df8c12f5bee6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Free Documentation License
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of this
** file.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
  \page qdeclarativeelements.html
  \target elements
  \title QML Elements
  \brief A dictionary of standard QML elements.

  This is a dictionary of all standard QML elements made available
  in the QtDeclarative module.

  To see the QML elements listed by functional area, see the
  \l{Groups Of Related QML Elements} page.

	\table 
	\header \o {2,1} \bold {Basic Visual Items}
	\row \o \l {Item} \o Basic item element inherited by all visual items in QML
	\row \o \l {Rectangle} \o Basic visual rectangle element
	\row \o \l {Gradient} \o Defines a gradient between two or more colors
	\row \o \l {GradientStop} \o Defines a color used in a \l {Gradient}
	\row \o \l {Image} \o Allows the use of bitmaps to a scene
	\row \o \l {BorderImage} (Item-specific) \o Defines an image as a border
	\row \o \l {AnimatedImage} \o For playing animations stored as a series of frames
	\row \o \l {Text} \o Allows the use of formatted text in a scene
	\row \o \l {TextInput} \o Displays an editable line of text
	\row \o \l {IntValidator} \o Validator for integer values
	\row \o \l {DoubleValidator} \o Validator for non-integer values
	\row \o \l {RegExpValidator} \o Validator for string regular expressions
	\row \o \l {TextEdit} \o Displays multiple lines of editable formatted text

	\header \o {2,1} \bold {Basic Interaction Items}
	\row \o \l {MouseArea} \o Handles mouse interactions
	\row \o \l {FocusScope} \o For keyboard focus handling 
	\row \o \l {Flickable} \o Provides a surface that can be "flicked"  
	\row \o \l {Flipable} \o Provides a surface that produces flipping effects
	\row \o \l {GestureArea} (experimental) \o Enables simple gesture handling
	 
	\header \o {2,1} \bold {States}
	\row \o \l {State} \o Defines sets of configurations of objects and properties
	\row \o \l {PropertyChanges} \o Describes property changes within a state
	\row \o \l {StateGroup} \o Contains a set of states and state transitions
	\row \o \l {StateChangeScript} \o Allows script binding in a state
	\row \o \l {ParentChange} (Item-specific) \o Re-parent an Item in a state change
	\row \o \l {AnchorChanges} \o Change the anchors of an item in a state

	\header \o {2,1} \bold {Animation and Transitions}
	\row \o \l {Behavior} \o Specifies a default animation for property changes
	\row \o \l {SequentialAnimation} \o Runs animations sequentially
	\row \o \l {ParallelAnimation} \o Runs animations in parallel
	\row \o \l {PropertyAnimation} \o Animates property changes
	\row \o \l {NumberAnimation} \o Animates properties of type qreal
	\row \o \l {Vector3dAnimation} \o Animates properties of type QVector3d
	\row \o \l {ColorAnimation} \o Animates color changes
	\row \o \l {RotationAnimation} \o Animates rotations
	\row \o \l {ParentAnimation} \o Animates parent changes
	\row \o \l {AnchorAnimation} \o Animates anchor changes
	\row \o \l {PauseAnimation} \o Pauses an animation 
	\row \o \l {SmoothedAnimation} \o Allows a property to smoothly track a value
	\row \o \l {SpringAnimation} \o Allows a property to track a value in a spring-like motion
	\row \o \l {PropertyAction} \o Sets immediate property changes during animation
	\row \o \l {ScriptAction} \o Runs scripts during an animation
	\row \o \l {Transition} \o Animates transitions during state changes

	\header \o {2,1} \bold {Working with Data}
	\row \o \l {Binding} \o Binds any value to any property
	\row \o \l {ListModel} \o Defines a list of data
	\row \o \l {ListElement} \o Defines a data item in a \l {ListModel}
	\row \o \l {VisualItemModel} \o Contains items that already defines its own visual delegate
	\row \o \l {VisualDataModel} \o Encapsulates a model and a delegate
	\row \o \l {Package} \o Collection that enables sharing of items within different views
	\row \o \l {XmlListModel} \o Specifies a model using XPath expressions 
	\row \o \l {XmlRole}  \o Specifies a role for an \l {XmlListModel}

	\header \o {2,1} \bold {Views}
	\row \o \l {ListView} \o Provides a list visualization of a model
	\row \o \l {GridView} \o Provides a grid visualization of a model
	\row \o \l {PathView} \o Visualizes a model's contents along a path
	\row \o \l {Path} \o Defines a path used by \l {PathView}
	\row \o \l {PathLine}  \o Defines a line in \l {Path}
	\row \o \l {PathQuad}  \o Defines a quadratic Bezier curve in a \l {Path}
	\row \o \l {PathCubic}  \o Defines a cubic Bezier curve in a \l {Path}
	\row \o \l {PathAttribute}  \o Allows the setting of attributes along a \l {Path}
	\row \o \l {PathPercent}  \o Modifies the item distribution along a \l {Path}
	\row \o \l {WebView} \o Allows the addition of web content to a canvas

	\header \o {2,1} \bold {Positioners}
	\row \o \l {Column} \o Arranges its children vertically
	\row \o \l {Row} \o Arranges its children horizontally
	\row \o \l {Grid} \o Positions its children in a grid
	\row \o \l {Flow} \o Positions its children with wrapping support

	\header \o {2,1} \bold {Utility}
	\row \o \l {Connections} \o Explicitly connects signals and signal handlers
	\row \o \l {Component} \o Encapsulate QML items as a component
	\row \o \l {Timer} \o Provides timed triggers 
	\row \o \l {QML:QtObject} {QtObject} \o Basic element containing only the objectName property
	\row \o \l {QML:Qt} {Qt} \o The QML global Qt object provides useful enums and functions from Qt.
	\row \o \l {WorkerScript} \o Enables the use of threads in QML
	\row \o \l {Loader} \o Controls the loading of items or components
	\row \o \l {Repeater} \o Uses a model to create multiples of components
	\row \o \l {SystemPalette} \o Provides access to the Qt palettes
	\row \o \l {FontLoader} \o Loads fonts by name or URL
	\row \o \l {LayoutItem} \o Allows declarative UI elements inside Qt's Graphics View layouts 

	\header \o {2,1} \bold {Transforms}
	\row \o \l {Scale} \o Assigns item scaling behaviors
	\row \o \l {Rotation} \o Assigns item rotation behaviors
	\row \o \l {Translate} \o Assigns item translation behaviors

	\header \o {2,1} \bold {Effects}
	\row \o \l {Particles} (experimental) \o Generates and animates particles
	\row \o \l {ParticleMotionLinear} \o Adds linear motion behavior to \l {Particles}
	\row \o \l {ParticleMotionGravity} \o Adds gravitational motion to \l {Particles}
	\row \o \l {ParticleMotionWander} \o Adds varied motions to \l {Particles}
	\endtable
	  
  
  
*/


/*!
    \group qml-groups
    \title Groups Of Related QML Elements

    \brief If you know what kind of QML element you want (Basic Visual, 
    Interaction, Animation, etc), look here.

    This is a list of functional groups of QML elements.

    \generatelist{related}

*/

/*!
    \group qml-basic-visual-elements
    \title Basic QML Visual Elements
    \ingroup qml-groups

    \brief Elements for constructing basic visual items.

    \generatelist{related}

*/

/*!
    \group qml-basic-interaction-elements
    \title Basic QML Interaction Elements
    \ingroup qml-groups

    \brief Elements for handling basic interactions.

    \generatelist{related}

*/

/*!
    \group qml-state-elements
    \title QML State Elements
    \ingroup qml-groups

    \brief Elements for handling state changes.

    \generatelist{related}

*/

/*!
    \group qml-event-elements
    \title QML Event Elements
    \ingroup qml-groups

    \brief Elements for handling events.

    \generatelist{related}

*/

/*!
    \group qml-animation-transition
    \title QML Animation and Transition Elements
    \ingroup qml-groups

    \brief Elements for handling animations and transitions.

    \generatelist{related}

*/

/*!
    \group qml-working-with-data
    \title Working With Data in QML
    \ingroup qml-groups

    \brief Elements for working with data.

    \generatelist{related}

*/

/*!
    \group qml-view-elements
    \title QML View Elements
    \ingroup qml-groups

    \brief Elements for handling views.

    \generatelist{related}

*/

/*!
    \group qml-positioning-elements
    \title QML Positioning Elements
    \ingroup qml-groups

    \brief Elements for positioning items.

    \generatelist{related}

*/

/*!
    \group qml-utility-elements
    \title QML Utility Elements
    \ingroup qml-groups

    \brief Elements for handling misc operations.

    \generatelist{related}

*/

/*!
    \group qml-transform-elements
    \title QML Transform Elements
    \ingroup qml-groups

    \brief Elements for handling transformations.

    \generatelist{related}

*/

/*!
    \group qml-particle-elements
    \title QML Particle Elements
    \ingroup qml-groups

    \brief Elements for handling particle effects.

    \generatelist{related}

*/