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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
|
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** 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 either Technology Preview License Agreement or the
** Beta Release License Agreement.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at qt-sales@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/
/*!
\page examples.html
\title Qt Examples
\brief Information about the example programs provided with Qt.
\ingroup howto
This is the list of examples in Qt's \c examples directory. The
examples demonstrate Qt features in small, self-contained
programs. They are not all designed to be impressive when you run
them, but their source code is carefully written to show good Qt
programming practices. You can launch any of these programs from the
\l{Examples and Demos Launcher} application.
If you are new to Qt, you should probably start by going through
the \l{Tutorials} before you have a look at the
\l{mainwindows/application}{Application} example.
In addition to the examples and the tutorial, Qt includes a
\l{Qt Demonstrations}{selection of demos} that deliberately show off
Qt's features. You might want to look at these as well.
One more valuable source for examples and explanations of Qt
features is the archive of the \l {Qt Quarterly}.
In the list below, examples marked with an asterisk (*) are fully
documented. Eventually, all the examples will be fully documented,
but sometimes we include an example before we have time to write
about it, because someone might need it right now.
Categories:
\tableofcontents
\section1 ActiveQt
\list
\o \l{activeqt/comapp}{COM App}\raisedaster
\o \l{Dot Net Example (ActiveQt)}{Dot Net}\raisedaster
\o \l{activeqt/hierarchy}{Hierarchy}\raisedaster
\o \l{activeqt/menus}{Menus}\raisedaster
\o \l{activeqt/multiple}{Multiple}\raisedaster
\o \l{activeqt/opengl}{OpenGL}\raisedaster
\o \l{activeqt/qutlook}{Qutlook}\raisedaster
\o \l{activeqt/simple}{Simple}\raisedaster
\o \l{activeqt/webbrowser}{Web Browser}\raisedaster
\o \l{activeqt/wrapper}{Wrapper}\raisedaster
\endlist
\section1 Concurrent Programming
\list
\o \l{qtconcurrent/imagescaling}{QtConcurrent Asynchronous Image Scaling}
\o \l{qtconcurrent/map}{QtConcurrent Map}
\o \l{qtconcurrent/progressdialog}{QtConcurrent Progress Dialog}
\o \l{qtconcurrent/runfunction}{QtConcurrent Run Function}
\o \l{qtconcurrent/wordcount}{QtConcurrent Word Count}
\endlist
\section1 D-Bus
\list
\o \l{dbus/dbus-chat}{Chat}
\o \l{dbus/complexpingpong}{Complex Ping Pong}
\o \l{dbus/listnames}{List Names}
\o \l{dbus/pingpong}{Ping Pong}
\o \l{dbus/remotecontrolledcar}{Remote Controlled Car}
\endlist
\section1 Desktop
\list
\o \l{desktop/screenshot}{Screenshot}\raisedaster
\o \l{desktop/systray}{System Tray}\raisedaster
\endlist
\section1 Dialogs
\list
\o \l{dialogs/classwizard}{Class Wizard}\raisedaster
\o \l{dialogs/configdialog}{Config Dialog}
\o \l{dialogs/extension}{Extension}\raisedaster
\o \l{dialogs/findfiles}{Find Files}\raisedaster
\o \l{dialogs/licensewizard}{License Wizard}\raisedaster
\o \l{dialogs/standarddialogs}{Standard Dialogs}
\o \l{dialogs/tabdialog}{Tab Dialog}\raisedaster
\o \l{dialogs/trivialwizard}{Trivial Wizard}
\endlist
\section1 Drag and Drop
\list
\o \l{draganddrop/delayedencoding}{Delayed Encoding}\raisedaster
\o \l{draganddrop/draggableicons}{Draggable Icons}
\o \l{draganddrop/draggabletext}{Draggable Text}
\o \l{draganddrop/dropsite}{Drop Site}
\o \l{draganddrop/fridgemagnets}{Fridge Magnets}\raisedaster
\o \l{draganddrop/puzzle}{Drag and Drop Puzzle}
\endlist
\section1 Graphics View
\list
\o \l{graphicsview/collidingmice}{Colliding Mice}\raisedaster
\o \l{graphicsview/diagramscene}{Diagram Scene}\raisedaster
\o \l{graphicsview/dragdroprobot}{Drag and Drop Robot}
\o \l{graphicsview/elasticnodes}{Elastic Nodes}
\o \l{graphicsview/portedasteroids}{Ported Asteroids}
\o \l{graphicsview/portedcanvas}{Ported Canvas}
\endlist
\section1 Help System
\list
\o \l{help/simpletextviewer}{Simple Text Viewer}\raisedaster
\endlist
\section1 Item Views
\list
\o \l{itemviews/addressbook}{Address Book}\raisedaster
\o \l{itemviews/basicsortfiltermodel}{Basic Sort/Filter Model}
\o \l{itemviews/chart}{Chart}
\o \l{itemviews/coloreditorfactory}{Color Editor Factory}\raisedaster
\o \l{itemviews/combowidgetmapper}{Combo Widget Mapper}\raisedaster
\o \l{itemviews/customsortfiltermodel}{Custom Sort/Filter Model}\raisedaster
\o \l{itemviews/dirview}{Dir View}
\o \l{itemviews/editabletreemodel}{Editable Tree Model}\raisedaster
\o \l{itemviews/fetchmore}{Fetch More}\raisedaster
\o \l{itemviews/pixelator}{Pixelator}\raisedaster
\o \l{itemviews/puzzle}{Puzzle}
\o \l{itemviews/simpledommodel}{Simple DOM Model}\raisedaster
\o \l{itemviews/simpletreemodel}{Simple Tree Model}\raisedaster
\o \l{itemviews/simplewidgetmapper}{Simple Widget Mapper}\raisedaster
\o \l{itemviews/spinboxdelegate}{Spin Box Delegate}\raisedaster
\o \l{itemviews/stardelegate}{Star Delegate}\raisedaster
\endlist
\section1 Layouts
\list
\o \l{layouts/basiclayouts}{Basic Layouts}\raisedaster
\o \l{layouts/borderlayout}{Border Layout}
\o \l{layouts/dynamiclayouts}{Dynamic Layouts}
\o \l{layouts/flowlayout}{Flow Layout}
\endlist
\section1 Main Windows
\list
\o \l{mainwindows/application}{Application}\raisedaster
\o \l{mainwindows/dockwidgets}{Dock Widgets}\raisedaster
\o \l{mainwindows/mdi}{MDI}
\o \l{mainwindows/menus}{Menus}\raisedaster
\o \l{mainwindows/recentfiles}{Recent Files}
\o \l{mainwindows/sdi}{SDI}
\endlist
\section1 Network
\list
\o \l{network/blockingfortuneclient}{Blocking Fortune Client}\raisedaster
\o \l{network/broadcastreceiver}{Broadcast Receiver}
\o \l{network/broadcastsender}{Broadcast Sender}
\o \l{network/network-chat}{Network Chat}
\o \l{network/fortuneclient}{Fortune Client}\raisedaster
\o \l{network/fortuneserver}{Fortune Server}\raisedaster
\o \l{network/ftp}{FTP}\raisedaster
\o \l{network/http}{HTTP}
\o \l{network/loopback}{Loopback}
\o \l{network/threadedfortuneserver}{Threaded Fortune Server}\raisedaster
\o \l{network/torrent}{Torrent}
\endlist
\section1 OpenGL
\list
\o \l{opengl/2dpainting}{2D Painting}\raisedaster
\o \l{opengl/framebufferobject}{Framebuffer Object}
\o \l{opengl/framebufferobject2}{Framebuffer Object 2}
\o \l{opengl/grabber}{Grabber}
\o \l{opengl/hellogl}{Hello GL}\raisedaster
\o \l{opengl/overpainting}{Overpainting}\raisedaster
\o \l{opengl/pbuffers}{Pixel Buffers}
\o \l{opengl/pbuffers2}{Pixel Buffers 2}
\o \l{opengl/samplebuffers}{Sample Buffers}
\o \l{opengl/textures}{Textures}
\endlist
\section1 Painting
\list
\o \l{painting/basicdrawing}{Basic Drawing}\raisedaster
\o \l{painting/concentriccircles}{Concentric Circles}\raisedaster
\o \l{painting/fontsampler}{Font Sampler}
\o \l{painting/imagecomposition}{Image Composition}\raisedaster
\o \l{painting/painterpaths}{Painter Paths}\raisedaster
\o \l{painting/svggenerator}{SVG Generator}\raisedaster
\o \l{painting/svgviewer}{SVG Viewer}
\o \l{painting/transformations}{Transformations}\raisedaster
\endlist
\section1 Phonon Multimedia Framework
\list
\o \l{phonon/capabilities}{Capabilities}\raisedaster
\o \l{phonon/musicplayer}{Music Player}\raisedaster
\endlist
\section1 Qt Designer
\list
\o \l{designer/calculatorbuilder}{Calculator Builder}\raisedaster
\o \l{designer/calculatorform}{Calculator Form}\raisedaster
\o \l{designer/customwidgetplugin}{Custom Widget Plugin}\raisedaster
\o \l{designer/taskmenuextension}{Task Menu Extension}\raisedaster
\o \l{designer/containerextension}{Container Extension}\raisedaster
\o \l{designer/worldtimeclockbuilder}{World Time Clock Builder}\raisedaster
\o \l{designer/worldtimeclockplugin}{World Time Clock Plugin}\raisedaster
\endlist
\section1 Qt Linguist
\list
\o \l{linguist/hellotr}{Hello tr()}\raisedaster
\o \l{linguist/arrowpad}{Arrow Pad}\raisedaster
\o \l{linguist/trollprint}{Troll Print}\raisedaster
\endlist
\section1 Qt for Embedded Linux
\list
\o \l{qws/svgalib}{Accelerated Graphics Driver}\raisedaster
\o \l{qws/dbscreen}{Double Buffered Graphics Driver}\raisedaster
\o \l{qws/mousecalibration}{Mouse Calibration}\raisedaster
\o \l{qws/ahigl}{OpenGL for Embedded Systems}\raisedaster
\o \l{qws/simpledecoration}{Simple Decoration}\raisedaster
\endlist
\section1 Qt Script
\list
\o \l{script/calculator}{Calculator}\raisedaster
\o \l{script/context2d}{Context2D}\raisedaster
\o \l{script/defaultprototypes}{Default Prototypes}\raisedaster
\o \l{script/helloscript}{Hello Script}\raisedaster
\o \l{script/qstetrix}{Qt Script Tetrix}\raisedaster
\o \l{script/customclass}{Custom Script Class}\raisedaster
\endlist
\section1 Rich Text
\list
\o \l{richtext/calendar}{Calendar}\raisedaster
\o \l{richtext/orderform}{Order Form}\raisedaster
\o \l{richtext/syntaxhighlighter}{Syntax Highlighter}\raisedaster
\o \l{richtext/textobject}{Text Object}\raisedaster
\endlist
\section1 SQL
\list
\o \l{sql/cachedtable}{Cached Table}\raisedaster
\o \l{sql/drilldown}{Drill Down}\raisedaster
\o \l{sql/querymodel}{Query Model}
\o \l{sql/relationaltablemodel}{Relational Table Model}
\o \l{sql/tablemodel}{Table Model}
\o \l{sql/sqlwidgetmapper}{SQL Widget Mapper}\raisedaster
\endlist
\section1 Threads
\list
\o \l{threads/queuedcustomtype}{Queued Custom Type}\raisedaster
\o \l{threads/mandelbrot}{Mandelbrot}\raisedaster
\o \l{threads/semaphores}{Semaphores}\raisedaster
\o \l{threads/waitconditions}{Wait Conditions}\raisedaster
\endlist
\section1 Tools
\list
\o \l{tools/codecs}{Codecs}
\o \l{tools/completer}{Completer}\raisedaster
\o \l{tools/customcompleter}{Custom Completer}\raisedaster
\o \l{tools/customtype}{Custom Type}\raisedaster
\o \l{tools/customtypesending}{Custom Type Sending}\raisedaster
\o \l{tools/echoplugin}{Echo Plugin}\raisedaster
\o \l{tools/i18n}{I18N}
\o \l{tools/plugandpaint}{Plug & Paint}\raisedaster
\o Plug & Paint Plugins: \l{tools/plugandpaintplugins/basictools}{Basic Tools}\raisedaster
and \l{tools/plugandpaintplugins/extrafilters}{Extra Filters}\raisedaster
\o \l{tools/regexp}{RegExp}
\o \l{tools/settingseditor}{Settings Editor}
\o \l{tools/styleplugin}{Style Plugin}\raisedaster
\o \l{tools/treemodelcompleter}{Tree Model Completer}\raisedaster
\o \l{tools/undoframework}{Undo Framework}\raisedaster
\endlist
\section1 UiTools
\list
\o \l{uitools/multipleinheritance}{Multiple Inheritance}\raisedaster
\o \l{uitools/textfinder}{Text Finder}\raisedaster
\endlist
\section1 WebKit
\list
\o \l{webkit/previewer}{Previewer}\raisedaster
\o \l{webkit/formextractor}{Form Extractor}
\endlist
\section1 Widgets
\list
\o \l{widgets/analogclock}{Analog Clock}\raisedaster
\o \l{widgets/calculator}{Calculator}\raisedaster
\o \l{widgets/calendarwidget}{Calendar Widget}\raisedaster
\o \l{widgets/charactermap}{Character Map}\raisedaster
\o \l{widgets/codeeditor}{Code Editor}\raisedaster
\o \l{widgets/digitalclock}{Digital Clock}\raisedaster
\o \l{widgets/groupbox}{Group Box}\raisedaster
\o \l{widgets/icons}{Icons}\raisedaster
\o \l{widgets/imageviewer}{Image Viewer}\raisedaster
\o \l{widgets/lineedits}{Line Edits}\raisedaster
\o \l{widgets/movie}{Movie}
\o \l{widgets/scribble}{Scribble}\raisedaster
\o \l{widgets/shapedclock}{Shaped Clock}\raisedaster
\o \l{widgets/sliders}{Sliders}\raisedaster
\o \l{widgets/spinboxes}{Spin Boxes}\raisedaster
\o \l{widgets/styles}{Styles}\raisedaster
\o \l{widgets/stylesheet}{Style Sheet}\raisedaster
\o \l{widgets/tablet}{Tablet}\raisedaster
\o \l{widgets/tetrix}{Tetrix}\raisedaster
\o \l{widgets/tooltips}{Tooltips}\raisedaster
\o \l{widgets/wiggly}{Wiggly}\raisedaster
\o \l{widgets/windowflags}{Window Flags}\raisedaster
\endlist
\section1 XML
\list
\o \l{xml/dombookmarks}{DOM Bookmarks}
\o \l{xml/saxbookmarks}{SAX Bookmarks}
\o \l{xml/streambookmarks}{QXmlStream Bookmarks}\raisedaster
\o \l{xml/rsslisting}{RSS-Listing}
\o \l{xml/xmlstreamlint}{XML Stream Lint Example}\raisedaster
\endlist
\section1 XQuery, XPath
\list
\o \l{xmlpatterns/recipes}{Recipes}
\o \l{xmlpatterns/filetree}{File System Example}
\o \l{xmlpatterns/qobjectxmlmodel}{QObject XML Model Example}
\o \l{xmlpatterns/xquery/globalVariables}{C++ Source Code Analyzer Example}
\o \l{xmlpatterns/trafficinfo}{Traffic Info}\raisedaster
\endlist
\section1 Inter-Process Communication
\list
\o \l{ipc/localfortuneclient}{Local Fortune Client}\raisedaster
\o \l{ipc/localfortuneserver}{Local Fortune Server}\raisedaster
\o \l{ipc/sharedmemory}{Shared Memory}\raisedaster
\endlist
*/
|