source: trunk/doc/src/getting-started/examples.qdoc@ 859

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

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

  • Property svn:eol-style set to native
File size: 31.5 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 \group all-examples
30 \title Qt Examples
31
32 Qt includes a set of examples that cover nearly every aspect of Qt
33 development. They aren't meant to be impressive when you run them,
34 but in each case the source code has been carefully written to
35 illustrate one or more best Qt programming practices.
36
37 You can run the examples from the \l{Examples and Demos Launcher}
38 application (except see \l{QML Examples and Demos} {QML Examples}
39 for special instructions for running those examples).
40
41 The examples are listed below by functional area. Each example
42 listed in a particular functional area is meant to illustrate how
43 best to use Qt to do some particular task in that functional area,
44 but the examples will often use features from other functional
45 areas as well for completeness.
46
47 If you are new to Qt, you should probably start by going through
48 the \l{Tutorials}, and then begin with the
49 \l{mainwindows/application} {Application} example.
50
51 In addition to these examples and the \l{Tutorials}{tutorials}, Qt
52 includes a \l{Qt Demonstrations}{selection of demos} that
53 deliberately show off Qt's features. You might want to look at
54 these as well.
55
56 These examples are provided under the terms of the
57 \l{New and Modified BSD Licenses}{Modified BSD License}.
58
59
60 \section1 Examples by Functional Area
61
62 \generatelist{related}
63*/
64
65/*!
66 \page examples-widgets.html
67 \title Widget Examples
68 \ingroup all-examples
69 \brief Lots of examples of how to use different kinds of widgets.
70
71 \image widget-examples.png
72
73 Qt comes with a large range of standard widgets that users of modern
74 applications have come to expect.
75
76 You can also develop your own custom widgets and controls, and use them
77 alongside standard widgets.
78
79 It is even possible to provide custom styles and themes for widgets that can
80 be used to change the appearance of standard widgets and appropriately
81 written custom widgets.
82
83 \list
84 \o \l{widgets/analogclock}{Analog Clock}\raisedaster
85 \o \l{widgets/calculator}{Calculator}\raisedaster
86 \o \l{widgets/calendarwidget}{Calendar Widget}\raisedaster
87 \o \l{widgets/charactermap}{Character Map}\raisedaster
88 \o \l{widgets/codeeditor}{Code Editor}\raisedaster
89 \o \l{widgets/digitalclock}{Digital Clock}\raisedaster
90 \o \l{widgets/groupbox}{Group Box}\raisedaster
91 \o \l{widgets/icons}{Icons}\raisedaster
92 \o \l{widgets/imageviewer}{Image Viewer}\raisedaster
93 \o \l{widgets/lineedits}{Line Edits}\raisedaster
94 \o \l{widgets/movie}{Movie}
95 \o \l{widgets/scribble}{Scribble}\raisedaster
96 \o \l{widgets/shapedclock}{Shaped Clock}\raisedaster
97 \o \l{widgets/sliders}{Sliders}\raisedaster
98 \o \l{widgets/softkeys}{Soft Keys}
99 \o \l{widgets/spinboxes}{Spin Boxes}\raisedaster
100 \o \l{widgets/styles}{Styles}\raisedaster
101 \o \l{widgets/stylesheet}{Style Sheet}\raisedaster
102 \o \l{widgets/tablet}{Tablet}\raisedaster
103 \o \l{widgets/tetrix}{Tetrix}\raisedaster
104 \o \l{widgets/tooltips}{Tooltips}\raisedaster
105 \o \l{widgets/validators}{Validators}
106 \o \l{widgets/wiggly}{Wiggly}\raisedaster
107 \o \l{widgets/windowflags}{Window Flags}\raisedaster
108 \endlist
109
110 Examples marked with an asterisk (*) are fully documented.
111*/
112
113/*!
114 \page examples-dialogs.html
115 \ingroup all-examples
116 \title Dialog Examples
117 \brief Using Qt's standard dialogs and building and using custom dialogs.
118
119 \image dialog-examples.png
120
121 Qt includes standard dialogs for many common operations, such as file
122 selection, printing, and color selection.
123
124 Custom dialogs can also be created for specialized modal or modeless
125 interactions with users.
126
127 \list
128 \o \l{dialogs/classwizard}{Class Wizard}\raisedaster
129 \o \l{dialogs/configdialog}{Config Dialog}
130 \o \l{dialogs/extension}{Extension}\raisedaster
131 \o \l{dialogs/findfiles}{Find Files}\raisedaster
132 \o \l{dialogs/licensewizard}{License Wizard}\raisedaster
133 \o \l{dialogs/standarddialogs}{Standard Dialogs}
134 \o \l{dialogs/tabdialog}{Tab Dialog}\raisedaster
135 \o \l{dialogs/trivialwizard}{Trivial Wizard}
136 \endlist
137
138 Examples marked with an asterisk (*) are fully documented.
139*/
140
141/*!
142 \page examples-mainwindow.html
143 \ingroup all-examples
144 \title Main Window Examples
145 \brief Building applications around a main window.
146
147 \image mainwindow-examples.png
148
149 All the standard features of application main windows are provided by Qt.
150
151 Main windows can have pull down menus, tool bars, and dock windows. These
152 separate forms of user input are unified in an integrated action system that
153 also supports keyboard shortcuts and accelerator keys in menu items.
154
155 \list
156 \o \l{mainwindows/application}{Application}\raisedaster
157 \o \l{mainwindows/dockwidgets}{Dock Widgets}\raisedaster
158 \o \l{mainwindows/mdi}{MDI}
159 \o \l{mainwindows/menus}{Menus}\raisedaster
160 \o \l{mainwindows/recentfiles}{Recent Files}
161 \o \l{mainwindows/sdi}{SDI}
162 \endlist
163
164 Examples marked with an asterisk (*) are fully documented.
165*/
166
167/*!
168 \page examples-layouts.html
169 \ingroup all-examples
170 \title Layout Examples
171 \brief Using Qt's layout-based approach to widget management.
172
173 \image layout-examples.png
174
175 Qt uses a layout-based approach to widget management. Widgets are arranged in
176 the optimal positions in windows based on simple layout rules, leading to a
177 consistent look and feel.
178
179 Custom layouts can be used to provide more control over the positions and
180 sizes of child widgets.
181
182 \list
183 \o \l{layouts/basiclayouts}{Basic Layouts}\raisedaster
184 \o \l{layouts/borderlayout}{Border Layout}
185 \o \l{layouts/dynamiclayouts}{Dynamic Layouts}
186 \o \l{layouts/flowlayout}{Flow Layout}
187 \endlist
188
189 Examples marked with an asterisk (*) are fully documented.
190*/
191
192/*!
193 \page examples-itemviews.html
194 \ingroup all-examples
195 \title Item Views Examples
196 \brief Using the model/view design pattern to separate presentation from data.
197
198 \image itemview-examples.png
199
200 Item views are widgets that typically display data sets. Qt 4's model/view
201 framework lets you handle large data sets by separating the underlying data
202 from the way it is represented to the user, and provides support for
203 customized rendering through the use of delegates.
204
205 \list
206 \o \l{itemviews/addressbook}{Address Book}\raisedaster
207 \o \l{itemviews/basicsortfiltermodel}{Basic Sort/Filter Model}
208 \o \l{itemviews/chart}{Chart}
209 \o \l{itemviews/coloreditorfactory}{Color Editor Factory}\raisedaster
210 \o \l{itemviews/combowidgetmapper}{Combo Widget Mapper}\raisedaster
211 \o \l{itemviews/customsortfiltermodel}{Custom Sort/Filter Model}\raisedaster
212 \o \l{itemviews/dirview}{Dir View}
213 \o \l{itemviews/editabletreemodel}{Editable Tree Model}\raisedaster
214 \o \l{itemviews/fetchmore}{Fetch More}\raisedaster
215 \o \l{itemviews/frozencolumn}{Frozen Column}\raisedaster
216 \o \l{itemviews/pixelator}{Pixelator}\raisedaster
217 \o \l{itemviews/puzzle}{Puzzle}
218 \o \l{itemviews/simpledommodel}{Simple DOM Model}\raisedaster
219 \o \l{itemviews/simpletreemodel}{Simple Tree Model}\raisedaster
220 \o \l{itemviews/simplewidgetmapper}{Simple Widget Mapper}\raisedaster
221 \o \l{itemviews/spinboxdelegate}{Spin Box Delegate}\raisedaster
222 \o \l{itemviews/stardelegate}{Star Delegate}\raisedaster
223 \endlist
224
225 Examples marked with an asterisk (*) are fully documented.
226*/
227
228/*!
229 \page examples-graphicsview.html
230 \ingroup all-examples
231 \title Graphics View Examples
232 \brief Using Qt to manage and interact with a large (potentially) number of graphics items.
233
234 \image graphicsview-examples.png
235
236 Qt is provided with a comprehensive canvas through the GraphicsView
237 classes.
238
239 These examples demonstrate the fundamental aspects of canvas programming
240 with Qt.
241