source: trunk/doc/src/declarative/examples.qdoc@ 846

Last change on this file since 846 was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

File size: 6.3 KB
Line 
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 qdeclarativeexamples.html
30 \title QML Examples and Demos
31 \brief Building UIs with QML
32 \ingroup all-examples
33
34
35Qt includes a set of examples and demos that show how to use various aspects
36of QML. The examples are small demonstrations of particular QML components,
37while the demos contain more complete and functional applications.
38
39To run the examples and demos, open them in Qt Creator or use the included
40\l {QML Viewer} tool. The \l {QML Viewer} can be run from the command line:
41
42\code
43 qmlviewer $QTDIR/demos/declarative/samegame/samegame.qml
44\endcode
45
46On Mac OS X, you can run the included "QMLViewer" application from the
47Finder, or use the command line:
48
49\code
50 QMLViewer.app/Contents/MacOS/QMLViewer $QTDIR/demos/declarative/samegame/samegame.qml
51\endcode
52
53
54\section1 Demos
55
56The QML demos integrate a variety of features to demonstrate how QML
57can be used to produce sophisticated interfaces and applications:
58
59
60\table
61\row
62
63\o
64\l{demos/declarative/calculator}{Calculator}
65\image qml-calculator-example-small.png
66
67\o
68\l{demos/declarative/flickr}{Flickr Mobile}
69\image qml-flickr-demo-small.png
70
71\o
72\l{demos/declarative/minehunt}{Minehunt}
73\image qml-minehunt-demo-small.png
74
75\row
76
77\o
78\l{demos/declarative/photoviewer}{Photo Viewer}
79\image qml-photoviewer-demo-small.png
80
81\o
82\l{demos/declarative/rssnews}{RSS News Reader}
83\image qml-rssnews-demo-small.png
84
85\o
86\l{demos/declarative/samegame}{Same Game}
87\image qml-samegame-demo-small.png
88
89\row
90
91\o
92\l{demos/declarative/snake}{Snake}
93\image qml-snake-demo-small.png
94
95\o
96\l{demos/declarative/twitter}{Twitter}
97\image qml-twitter-demo-small.png
98
99\o
100\l{demos/declarative/webbrowser}{Web Browser}
101\image qml-webbrowser-demo-small.png
102
103\endtable
104
105The demos can be found in Qt's \c demos/declarative directory.
106
107
108\section1 Examples
109
110The QML examples are small, simple applications that show how to use a particular
111QML component or feature. If you are new
112to QML, you may also find the \l{QML Tutorial}{Hello World} and
113\l {QML Advanced Tutorial}{Same Game} tutorials useful.
114
115The examples can be found in Qt's \c examples/declarative directory.
116
117\section2 Animation
118\list
119\o \l{declarative/animation/basics}{Basics}
120\o \l{declarative/animation/behaviors}{Behaviors}
121\o \l{declarative/animation/easing}{Easing}
122\o \l{declarative/animation/states}{States}
123\endlist
124
125\section2 Image Elements
126\list
127\o \l{declarative/imageelements/borderimage}{BorderImage}
128\o \l{declarative/imageelements/image}{Image}
129\endlist
130
131\section2 Text
132\list
133\o \l{declarative/text/fonts}{Fonts}
134\o \l{declarative/text/textselection}{Text Selection}
135\endlist
136
137\section2 Positioners
138\list
139\o \l{declarative/positioners}{Example}
140\endlist
141
142\section2 Key Interaction
143\list
144\o \l{declarative/keyinteraction/focus}{Focus}
145\endlist
146
147\section2 Touch Interaction
148\list
149\o \l{declarative/touchinteraction/gestures}{Gestures}
150\o \l{declarative/touchinteraction/mousearea}{MouseArea}
151\endlist
152
153\section2 UI Components
154\list
155\o \l{declarative/ui-components/dialcontrol}{Dial control}
156\o \l{declarative/ui-components/flipable}{Flipable}
157\o \l{declarative/ui-components/progressbar}{Progress bar}
158\o \l{declarative/ui-components/scrollbar}{Scroll bar}
159\o \l{declarative/ui-components/searchbox}{Search box}
160\o \l{declarative/ui-components/slideswitch}{Slide switch}
161\o \l{declarative/ui-components/spinner}{Spinner}
162\o \l{declarative/ui-components/tabwidget}{Tab widget}
163\endlist
164
165\section2 Toys
166\list
167\o \l{declarative/toys/clocks}{Clocks}
168\o \l{declarative/toys/corkboards}{Corkboards}
169\o \l{declarative/toys/dynamicscene}{Dynamic Scene}
170\o \l{declarative/toys/tic-tac-toe}{Tic Tac Toe}
171\o \l{declarative/toys/tvtennis}{TV Tennis}
172\endlist
173
174\section2 Models and Views
175\list
176\o \l{declarative/modelviews/gridview}{GridView}
177\o \l{declarative/modelviews/listview}{ListView}
178\o \l{declarative/modelviews/pathview}{PathView}
179\o \l{declarative/modelviews/package}{Package}
180\o \l{declarative/modelviews/parallax}{Parallax}
181\o \l{declarative/modelviews/visualitemmodel}{VisualItemModel}