1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2010 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:LGPL$
|
---|
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
|
---|
14 | ** a written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Lesser General Public License Usage
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
18 | ** General Public License version 2.1 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
20 | ** packaging of this file. Please review the following information to
|
---|
21 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
22 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
23 | **
|
---|
24 | ** In addition, as a special exception, Nokia gives you certain additional
|
---|
25 | ** rights. These rights are described in the Nokia Qt LGPL Exception
|
---|
26 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you have questions regarding the use of this file, please contact
|
---|
37 | ** Nokia at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | /*!
|
---|
43 | \page examples-overview.html
|
---|
44 | \raw HTML
|
---|
45 | <script>
|
---|
46 | document.location.href = "examples.html";
|
---|
47 | </script>
|
---|
48 | \endraw
|
---|
49 | Click this \l{Qt Examples}{link} if you don't get redirected.
|
---|
50 | */
|
---|
51 |
|
---|
52 | /*!
|
---|
53 | \page examples.html
|
---|
54 | \title Qt Examples
|
---|
55 | \brief The example programs provided with Qt.
|
---|
56 |
|
---|
57 | \previouspage Tutorials
|
---|
58 | \contentspage How to Learn Qt
|
---|
59 | \nextpage Qt Demonstrations
|
---|
60 |
|
---|
61 | Qt is supplied with a variety of examples that cover almost every aspect
|
---|
62 | of development. They are not all designed to be impressive when you run
|
---|
63 | them, but their source code is carefully written to show good Qt
|
---|
64 | programming practices. You can launch any of these programs from the
|
---|
65 | \l{Examples and Demos Launcher} application.
|
---|
66 |
|
---|
67 | These examples are ordered by functional area, but many examples often
|
---|
68 | use features from many parts of Qt to highlight one area in particular.
|
---|
69 | If you are new to Qt, you should probably start by going through the
|
---|
70 | \l{Tutorials} before you have a look at the
|
---|
71 | \l{mainwindows/application}{Application} example.
|
---|
72 |
|
---|
73 | In addition to the examples and the tutorial, Qt includes a
|
---|
74 | \l{Qt Demonstrations}{selection of demos} that deliberately show off
|
---|
75 | Qt's features. You might want to look at these as well.
|
---|
76 |
|
---|
77 | \section1 \l{Widgets Examples}{Widgets}
|
---|
78 | \beginfloatleft
|
---|
79 | \l{Widgets Examples}{\inlineimage widget-examples.png
|
---|
80 | }
|
---|
81 |
|
---|
82 | \endfloat
|
---|
83 | Qt comes with a large range of standard widgets that users of modern
|
---|
84 | applications have come to expect. You can also develop your own custom
|
---|
85 | widgets and controls, and use them alongside standard widgets.
|
---|
86 |
|
---|
87 | It is even possible to provide custom styles and themes for widgets that can
|
---|
88 | be used to change the appearance of standard widgets and appropriately
|
---|
89 | written custom widgets.
|
---|
90 |
|
---|
91 | \clearfloat
|
---|
92 | \section1 \l{Dialog Examples}{Dialogs}
|
---|
93 | \beginfloatleft
|
---|
94 | \l{Dialog Examples}{\inlineimage dialog-examples.png
|
---|
95 | }
|
---|
96 |
|
---|
97 | \endfloat
|
---|
98 | Qt includes standard dialogs for many common operations, such as file
|
---|
99 | selection, printing, and color selection.
|
---|
100 |
|
---|
101 | Custom dialogs can also be created for specialized modal or modeless
|
---|
102 | interactions with users.
|
---|
103 |
|
---|
104 | \clearfloat
|
---|
105 | \section1 \l{Main Window Examples}{Main Windows}
|
---|
106 | \beginfloatleft
|
---|
107 | \l{Main Window Examples}{\inlineimage mainwindow-examples.png
|
---|
108 | }
|
---|
109 |
|
---|
110 | \endfloat
|
---|
111 | All the standard features of application main windows are provided by Qt.
|
---|
112 |
|
---|
113 | Main windows can have pull down menus, tool bars, and dock windows. These
|
---|
114 | separate forms of user input are unified in an integrated action system that
|
---|
115 | also supports keyboard shortcuts and accelerator keys in menu items.
|
---|
116 |
|
---|
117 | \clearfloat
|
---|
118 | \section1 \l{Layout Examples}{Layouts}
|
---|
119 | \beginfloatleft
|
---|
120 | \l{Layout Examples}{\inlineimage layout-examples.png
|
---|
121 | }
|
---|
122 |
|
---|
123 | \endfloat
|
---|
124 | Qt uses a layout-based approach to widget management. Widgets are arranged in
|
---|
125 | the optimal positions in windows based on simple layout rules, leading to a
|
---|
126 | consistent look and feel.
|
---|
127 |
|
---|
128 | Custom layouts can be used to provide more control over the positions and
|
---|
129 | sizes of child widgets.
|
---|
130 |
|
---|
131 | \clearfloat
|
---|
132 | \section1 \l{Item Views Examples}{Item Views}
|
---|
133 | \beginfloatleft
|
---|
134 | \l{Item Views Examples}{\inlineimage itemview-examples.png
|
---|
135 | }
|
---|
136 |
|
---|
137 | \endfloat
|
---|
138 | Item views are widgets that typically display data sets. Qt 4's model/view
|
---|
139 | framework lets you handle large data sets by separating the underlying data
|
---|
140 | from the way it is represented to the user, and provides support for
|
---|
141 | customized rendering through the use of delegates.
|
---|
142 |
|
---|
143 | \clearfloat
|
---|
144 | \section1 \l{Graphics View Examples}{Graphics View}
|
---|
145 | \beginfloatleft
|
---|
146 | \l{Graphics View Examples}{\inlineimage graphicsview-examples.png
|
---|
147 | }
|
---|
148 |
|
---|
149 | \endfloat
|
---|
150 | Qt is provided with a comprehensive canvas through the GraphicsView
|
---|
151 | classes.
|
---|
152 |
|
---|
153 | \clearfloat
|
---|
154 | \section1 \l{Painting Examples}{Painting}
|
---|
155 | \beginfloatleft
|
---|
156 | \l{Painting Examples}{\inlineimage painting-examples.png
|
---|
157 | }
|
---|
158 |
|
---|
159 | \endfloat
|
---|
160 | Qt's painting system is able to render vector graphics, images, and outline
|
---|
161 | font-based text with sub-pixel accuracy accuracy using anti-aliasing to
|
---|
162 | improve rendering quality.
|
---|
163 |
|
---|
164 | \clearfloat
|
---|
165 | \section1 \l{Rich Text Examples}{Rich Text}
|
---|
166 | \beginfloatleft
|
---|
167 | \l{Rich Text Examples}{\inlineimage richtext-examples.png
|
---|
168 | }
|
---|
169 |
|
---|
170 | \endfloat
|
---|
171 | Qt provides powerful document-oriented rich text engine that supports Unicode
|
---|
172 | and right-to-left scripts. Documents can be manipulated using a cursor-based
|
---|
173 | API, and their contents can be imported and exported as both HTML and in a
|
---|
174 | custom XML format.
|
---|
175 |
|
---|
176 | \clearfloat
|
---|
177 | \section1 \l{Desktop Examples}{Desktop}
|
---|
178 | \beginfloatleft
|
---|
179 | \l{Desktop Examples}{\inlineimage desktop-examples.png
|
---|
180 | }
|
---|
181 |
|
---|
182 | \endfloat
|
---|
183 | Qt provides features to enable applications to integrate with the user's
|
---|
184 | preferred desktop environment.
|
---|
185 |
|
---|
186 | Features such as system tray icons, access to the desktop widget, and
|
---|
187 | support for desktop services can be used to improve the appearance of
|
---|
188 | applications and take advantage of underlying desktop facilities.
|
---|
189 |
|
---|
190 | \clearfloat
|
---|
191 | \section1 \l{Drag and Drop Examples}{Drag and Drop}
|
---|
192 | \beginfloatleft
|
---|
193 | \l{Drag and Drop Examples}{\inlineimage draganddrop-examples.png
|
---|
194 | }
|
---|
195 |
|
---|
196 | \endfloat
|
---|
197 | Qt supports native drag and drop on all platforms via an extensible
|
---|
198 | MIME-based system that enables applications to send data to each other in the
|
---|
199 | most appropriate formats.
|
---|
200 |
|
---|
201 | Drag and drop can also be implemented for internal use by applications.
|
---|
202 |
|
---|
203 | \clearfloat
|
---|
204 | \section1 \l{Threading and Concurrent Programming Examples}{Threading and Concurrent Programming}
|
---|
205 | \beginfloatleft
|
---|
206 | \l{Threading and Concurrent Programming Examples}{\inlineimage thread-examples.png
|
---|
207 | }
|
---|
208 |
|
---|
209 | \endfloat
|
---|
210 | Qt 4 makes it easier than ever to write multithreaded applications. More
|
---|
211 | classes have been made usable from non-GUI threads, and the signals and slots
|
---|
212 | mechanism can now be used to communicate between threads.
|
---|
213 |
|
---|
214 | The QtConcurrent namespace includes a collection of classes and functions
|
---|
215 | for straightforward concurrent programming.
|
---|
216 |
|
---|
217 | \clearfloat
|
---|
218 | \section1 \l{Tools Examples}{Tools}
|
---|
219 | \beginfloatleft
|
---|
220 | \l{Tools Examples}{\inlineimage tool-examples.png
|
---|
221 | }
|
---|
222 |
|
---|
223 | \endfloat
|
---|
224 | Qt is equipped with a range of capable tool classes, from containers and
|
---|
225 | iterators to classes for string handling and manipulation.
|
---|
226 |
|
---|
227 | Other classes provide application infrastructure support, handling plugin
|
---|
228 | loading and managing configuration files.
|
---|
229 |
|
---|
230 | \clearfloat
|
---|
231 | \section1 \l{Network Examples}{Network}
|
---|
232 | \beginfloatleft
|
---|
233 | \l{Network Examples}{\inlineimage network-examples.png
|
---|
234 | }
|
---|
235 |
|
---|
236 | \endfloat
|
---|
237 | Qt is provided with an extensive set of network classes to support both
|
---|
238 | client-based and server side network programming.
|
---|
239 |
|
---|
240 | \clearfloat
|
---|
241 | \section1 \l{Inter-Process Communication Examples}{Inter-Process Communication}
|
---|
242 | \beginfloatleft
|
---|
243 | \l{Inter-Process Communication Examples}{\inlineimage ipc-examples.png
|
---|
244 | }
|
---|
245 |
|
---|
246 | \endfloat
|
---|
247 | Simple, lightweight inter-process communication can be performed using shared
|
---|
248 | memory and local sockets.
|
---|
249 |
|
---|
250 | \clearfloat
|
---|
251 | \section1 \l{OpenGL Examples}{OpenGL} and \l{OpenVG Examples}{OpenVG} Examples
|
---|
252 | \beginfloatleft
|
---|
253 | \l{OpenGL Examples}{\inlineimage opengl-examples.png
|
---|
254 | }
|
---|
255 |
|
---|
256 | \endfloat
|
---|
257 | Qt provides support for integration with OpenGL implementations on all
|
---|
258 | platforms, giving developers the opportunity to display hardware accelerated
|
---|
259 | 3D graphics alongside a more conventional user interface.
|
---|
260 |
|
---|
261 | Qt provides support for integration with OpenVG implementations on
|
---|
262 | platforms with suitable drivers.
|
---|
263 |
|
---|
264 | \clearfloat
|
---|
265 | \section1 \l{Multimedia Examples}{Multimedia Framework}
|
---|
266 | \beginfloatleft
|
---|
267 | \l{Multimedia Examples}{\inlineimage phonon-examples.png
|
---|
268 | }
|
---|
269 |
|
---|
270 | \endfloat
|
---|
271 | Qt provides low-level audio support on linux,windows and mac platforms by default and
|
---|
272 | an audio plugin API to allow developers to implement there own audio support for
|
---|
273 | custom devices and platforms.
|
---|
274 |
|
---|
275 | The Phonon Multimedia Framework brings multimedia support to Qt applications.
|
---|
276 |
|
---|
277 | \clearfloat
|
---|
278 | \section1 \l{SQL Examples}{SQL}
|
---|
279 | \beginfloatleft
|
---|
280 | \l{SQL Examples}{\inlineimage sql-examples.png
|
---|
281 | }
|
---|
282 |
|
---|
283 | \endfloat
|
---|
284 | Qt provides extensive database interoperability, with support for products
|
---|
285 | from both open source and proprietary vendors.
|
---|
286 |
|
---|
287 | SQL support is integrated with Qt's model/view architecture, making it easier
|
---|
288 | to provide GUI integration for your database applications.
|
---|
289 |
|
---|
290 | \clearfloat
|
---|
291 | \section1 \l{XML Examples}{XML}
|
---|
292 | \beginfloatleft
|
---|
293 | \l{XML Examples}{\inlineimage xml-examples.png
|
---|
294 | }
|
---|
295 |
|
---|
296 | \endfloat
|
---|
297 | XML parsing and handling is supported through SAX and DOM compliant APIs
|
---|
298 | as well as streaming classes.
|
---|
299 |
|
---|
300 | The XQuery/XPath and XML Schema engines in the QtXmlPatterns modules
|
---|
301 | provide classes for querying XML files and custom data models.
|
---|
302 |
|
---|
303 | \clearfloat
|
---|
304 | \section1 \l{Qt Designer Examples}{Qt Designer}
|
---|
305 | \beginfloatleft
|
---|
306 | \l{Qt Designer Examples}{\inlineimage designer-examples.png
|
---|
307 | }
|
---|
308 |
|
---|
309 | \endfloat
|
---|
310 | Qt Designer is a capable graphical user interface designer that lets you
|
---|
311 | create and configure forms without writing code. GUIs created with
|
---|
312 | Qt Designer can be compiled into an application or created at run-time.
|
---|
313 |
|
---|
314 | \clearfloat
|
---|
315 | \section1 \l{UiTools Examples}{UiTools}
|
---|
316 | \beginfloatleft
|
---|
317 | \l{UiTools Examples}{\inlineimage uitools-examples.png
|
---|
318 | }
|
---|
319 |
|
---|
320 | \endfloat
|
---|
321 | User interfaces created with Qt Designer can be loaded and displayed at
|
---|
322 | run-time using the facilities of the QtUiTools module without the need
|
---|
323 | to generate code in advance.
|
---|
324 |
|
---|
325 | \clearfloat
|
---|
326 | \section1 \l{Qt Linguist Examples}{Qt Linguist}
|
---|
327 | \beginfloatleft
|
---|
328 | \l{Qt Linguist Examples}{\inlineimage linguist-examples.png
|
---|
329 | }
|
---|
330 |
|
---|
331 | \endfloat
|
---|
332 | Internationalization is a core feature of Qt.
|
---|
333 |
|
---|
334 | \clearfloat
|
---|
335 | \section1 \l{Qt Script Examples}{Qt Script}
|
---|
336 | \beginfloatleft
|
---|
337 | \l{Qt Script Examples}{\inlineimage qtscript-examples.png
|
---|
338 | }
|
---|
339 |
|
---|
340 | \endfloat
|
---|
341 | Qt is provided with a powerful embedded scripting environment through the QtScript
|
---|
342 | classes.
|
---|
343 |
|
---|
344 | \clearfloat
|
---|
345 | \section1 \l{WebKit Examples}{WebKit}
|
---|
346 | \beginfloatleft
|
---|
347 | \l{WebKit Examples}{\inlineimage webkit-examples.png
|
---|
348 | }
|
---|
349 |
|
---|
350 | \endfloat
|
---|
351 | Qt provides an integrated Web browser component based on WebKit, the popular
|
---|
352 | open source browser engine.
|
---|
353 |
|
---|
354 | \clearfloat
|
---|
355 | \section1 \l{Help System Examples}{Help System}
|
---|
356 | \beginfloatleft
|
---|
357 | \l{Help System Examples}{\inlineimage assistant-examples.png
|
---|
358 | }
|
---|
359 |
|
---|
360 | \endfloat
|
---|
361 | Support for interactive help is provided by the Qt Assistant application.
|
---|
362 | Developers can take advantages of the facilities it offers to display
|
---|
363 | specially-prepared documentation to users of their applications.
|
---|
364 |
|
---|
365 | \clearfloat
|
---|
366 | \section1 \l{State Machine Examples}{State Machine}
|
---|
367 | \beginfloatleft
|
---|
368 | \l{State Machine Examples}{\inlineimage statemachine-examples.png
|
---|
369 | }
|
---|
370 |
|
---|
371 | \endfloat
|
---|
372 | Qt provides a powerful hierarchical finite state machine through the Qt State
|
---|
373 | Machine classes.
|
---|
374 |
|
---|
375 | \clearfloat
|
---|
376 | \section1 \l{Animation Framework Examples}{Animation Framework}
|
---|
377 | \beginfloatleft
|
---|
378 | \l{Animation Framework Examples}{\inlineimage animation-examples.png
|
---|
379 | }
|
---|
380 |
|
---|
381 | \endfloat
|
---|
382 | These examples show to to use the \l{The Animation Framework}{animation framework}
|
---|
383 | to build highly animated, high-performance GUIs.
|
---|
384 |
|
---|
385 | \clearfloat
|
---|
386 | \section1 \l{Multi-Touch Examples}{Multi-Touch Framework}
|
---|
387 | \beginfloatleft
|
---|
388 | \l{Multi-Touch Examples}{\inlineimage multitouch-examples.png
|
---|
389 | }
|
---|
390 |
|
---|
391 | \endfloat
|
---|
392 | Support for multi-touch input makes it possible for developers to create
|
---|
393 | extensible and intuitive user interfaces.
|
---|
394 |
|
---|
395 | \clearfloat
|
---|
396 | \section1 \l{Gestures Examples}{Gestures}
|
---|
397 | \beginfloatleft
|
---|
398 | \l{Gestures Examples}{\inlineimage gestures-examples.png
|
---|
399 | }
|
---|
400 |
|
---|
401 | \endfloat
|
---|
402 | Applications can be written to respond to gestures as a natural input method.
|
---|
403 | These examples show how to enable support for standard and custom gestures in
|
---|
404 | applications.
|
---|
405 |
|
---|
406 | \clearfloat
|
---|
407 | \section1 \l{D-Bus Examples}{D-Bus}
|
---|
408 | \beginfloatleft
|
---|
409 | \l{D-Bus Examples}{\inlineimage dbus-examples.png
|
---|
410 | }
|
---|
411 |
|
---|
412 | \endfloat
|
---|
413 | Systems with limited resources, specialized hardware, and small
|
---|
414 | screens require special attention.
|
---|
415 |
|
---|
416 | \clearfloat
|
---|
417 | \section1 \l{Qt for Embedded Linux Examples}{Qt for Embedded Linux}
|
---|
418 | \beginfloatleft
|
---|
419 | \l{Qt for Embedded Linux Examples}{\inlineimage qt-embedded-examples.png
|
---|
420 | }
|
---|
421 |
|
---|
422 | \endfloat
|
---|
423 | D-Bus is an inter-process communication protocol for Unix/Linux systems.
|
---|
424 | These examples demonstrate how to write application that communicate with
|
---|
425 | each other.
|
---|
426 |
|
---|
427 | \clearfloat
|
---|
428 | \section1 \l{ActiveQt Examples}{ActiveQt}
|
---|
429 | \beginfloatleft
|
---|
430 | \l{ActiveQt Examples}{\inlineimage activeqt-examples.png
|
---|
431 | }
|
---|
432 |
|
---|
433 | \endfloat
|
---|
434 | These examples demonstrate how to write ActiveX controls and control servers
|
---|
435 | with Qt, and how to use ActiveX controls and COM objects in a Qt application.
|
---|
436 |
|
---|
437 | \clearfloat
|
---|
438 | \section1 \l{Qt Quarterly}{Qt Quarterly}
|
---|
439 | \beginfloatleft
|
---|
440 | \l{Qt Quarterly}{\inlineimage qq-thumbnail.png
|
---|
441 | }
|
---|
442 |
|
---|
443 | \endfloat
|
---|
444 | One more valuable source for examples and explanations of Qt
|
---|
445 | features is the archive of \l{Qt Quarterly}, a newsletter for
|
---|
446 | Qt developers.
|
---|
447 |
|
---|
448 | \clearfloat
|
---|
449 | */
|
---|
450 |
|
---|
451 | /*!
|
---|
452 | \page examples-widgets.html
|
---|
453 | \title Widgets Examples
|
---|
454 |
|
---|
455 | \contentspage Qt Examples
|
---|
456 | \nextpage Dialog Examples
|
---|
457 |
|
---|
458 | \image widget-examples.png
|
---|
459 |
|
---|
460 | Qt comes with a large range of standard widgets that users of modern
|
---|
461 | applications have come to expect.
|
---|
462 |
|
---|
463 | You can also develop your own custom widgets and controls, and use them
|
---|
464 | alongside standard widgets.
|
---|
465 |
|
---|
466 | It is even possible to provide custom styles and themes for widgets that can
|
---|
467 | be used to change the appearance of standard widgets and appropriately
|
---|
468 | written custom widgets.
|
---|
469 |
|
---|
470 | \list
|
---|
471 | \o \l{widgets/analogclock}{Analog Clock}\raisedaster
|
---|
472 | \o \l{widgets/calculator}{Calculator}\raisedaster
|
---|
473 | \o \l{widgets/calendarwidget}{Calendar Widget}\raisedaster
|
---|
474 | \o \l{widgets/charactermap}{Character Map}\raisedaster
|
---|
475 | \o \l{widgets/codeeditor}{Code Editor}\raisedaster
|
---|
476 | \o \l{widgets/digitalclock}{Digital Clock}\raisedaster
|
---|
477 | \o \l{widgets/groupbox}{Group Box}\raisedaster
|
---|
478 | \o \l{widgets/icons}{Icons}\raisedaster
|
---|
479 | \o \l{widgets/imageviewer}{Image Viewer}\raisedaster
|
---|
480 | \o \l{widgets/lineedits}{Line Edits}\raisedaster
|
---|
481 | \o \l{widgets/movie}{Movie}
|
---|
482 | \o \l{widgets/scribble}{Scribble}\raisedaster
|
---|
483 | \o \l{widgets/shapedclock}{Shaped Clock}\raisedaster
|
---|
484 | \o \l{widgets/sliders}{Sliders}\raisedaster
|
---|
485 | \o \l{widgets/softkeys}{Soft Keys}
|
---|
486 | \o \l{widgets/spinboxes}{Spin Boxes}\raisedaster
|
---|
487 | \o \l{widgets/styles}{Styles}\raisedaster
|
---|
488 | \o \l{widgets/stylesheet}{Style Sheet}\raisedaster
|
---|
489 | \o \l{widgets/tablet}{Tablet}\raisedaster
|
---|
490 | \o \l{widgets/tetrix}{Tetrix}\raisedaster
|
---|
491 | \o \l{widgets/tooltips}{Tooltips}\raisedaster
|
---|
492 | \o \l{widgets/validators}{Validators}
|
---|
493 | \o \l{widgets/wiggly}{Wiggly}\raisedaster
|
---|
494 | \o \l{widgets/windowflags}{Window Flags}\raisedaster
|
---|
495 | \endlist
|
---|
496 |
|
---|
497 | Examples marked with an asterisk (*) are fully documented.
|
---|
498 | */
|
---|
499 |
|
---|
500 | /*!
|
---|
501 | \page examples-dialogs.html
|
---|
502 | \title Dialog Examples
|
---|
503 |
|
---|
504 | \previouspage Widgets Examples
|
---|
505 | \contentspage Qt Examples
|
---|
506 | \nextpage Main Window Examples
|
---|
507 |
|
---|
508 | \image dialog-examples.png
|
---|
509 |
|
---|
510 | Qt includes standard dialogs for many common operations, such as file
|
---|
511 | selection, printing, and color selection.
|
---|
512 |
|
---|
513 | Custom dialogs can also be created for specialized modal or modeless
|
---|
514 | interactions with users.
|
---|
515 |
|
---|
516 | \list
|
---|
517 | \o \l{dialogs/classwizard}{Class Wizard}\raisedaster
|
---|
518 | \o \l{dialogs/configdialog}{Config Dialog}
|
---|
519 | \o \l{dialogs/extension}{Extension}\raisedaster
|
---|
520 | \o \l{dialogs/findfiles}{Find Files}\raisedaster
|
---|
521 | \o \l{dialogs/licensewizard}{License Wizard}\raisedaster
|
---|
522 | \o \l{dialogs/standarddialogs}{Standard Dialogs}
|
---|
523 | \o \l{dialogs/tabdialog}{Tab Dialog}\raisedaster
|
---|
524 | \o \l{dialogs/trivialwizard}{Trivial Wizard}
|
---|
525 | \endlist
|
---|
526 |
|
---|
527 | Examples marked with an asterisk (*) are fully documented.
|
---|
528 | */
|
---|
529 |
|
---|
530 | /*!
|
---|
531 | \page examples-mainwindow.html
|
---|
532 | \title Main Window Examples
|
---|
533 |
|
---|
534 | \previouspage Dialog Examples
|
---|
535 | \contentspage Qt Examples
|
---|
536 | \nextpage Layout Examples
|
---|
537 |
|
---|
538 | \image mainwindow-examples.png
|
---|
539 |
|
---|
540 | All the standard features of application main windows are provided by Qt.
|
---|
541 |
|
---|
542 | Main windows can have pull down menus, tool bars, and dock windows. These
|
---|
543 | separate forms of user input are unified in an integrated action system that
|
---|
544 | also supports keyboard shortcuts and accelerator keys in menu items.
|
---|
545 |
|
---|
546 | \list
|
---|
547 | \o \l{mainwindows/application}{Application}\raisedaster
|
---|
548 | \o \l{mainwindows/dockwidgets}{Dock Widgets}\raisedaster
|
---|
549 | \o \l{mainwindows/mdi}{MDI}
|
---|
550 | \o \l{mainwindows/menus}{Menus}\raisedaster
|
---|
551 | \o \l{mainwindows/recentfiles}{Recent Files}
|
---|
552 | \o \l{mainwindows/sdi}{SDI}
|
---|
553 | \endlist
|
---|
554 |
|
---|
555 | Examples marked with an asterisk (*) are fully documented.
|
---|
556 | */
|
---|
557 |
|
---|
558 | /*!
|
---|
559 | \page examples-layouts.html
|
---|
560 | \title Layout Examples
|
---|
561 |
|
---|
562 | \previouspage Main Window Examples
|
---|
563 | \contentspage Qt Examples
|
---|
564 | \nextpage Item Views Examples
|
---|
565 |
|
---|
566 | \image layout-examples.png
|
---|
567 |
|
---|
568 | Qt uses a layout-based approach to widget management. Widgets are arranged in
|
---|
569 | the optimal positions in windows based on simple layout rules, leading to a
|
---|
570 | consistent look and feel.
|
---|
571 |
|
---|
572 | Custom layouts can be used to provide more control over the positions and
|
---|
573 | sizes of child widgets.
|
---|
574 |
|
---|
575 | \list
|
---|
576 | \o \l{layouts/basiclayouts}{Basic Layouts}\raisedaster
|
---|
577 | \o \l{layouts/borderlayout}{Border Layout}
|
---|
578 | \o \l{layouts/dynamiclayouts}{Dynamic Layouts}
|
---|
579 | \o \l{layouts/flowlayout}{Flow Layout}
|
---|
580 | \endlist
|
---|
581 |
|
---|
582 | Examples marked with an asterisk (*) are fully documented.
|
---|
583 | */
|
---|
584 |
|
---|
585 | /*!
|
---|
586 | \page examples-itemviews.html
|
---|
587 | \title Item Views Examples
|
---|
588 |
|
---|
589 | \previouspage Layout Examples
|
---|
590 | \contentspage Qt Examples
|
---|
591 | \nextpage Graphics View Examples
|
---|
592 |
|
---|
593 | \image itemview-examples.png
|
---|
594 |
|
---|
595 | Item views are widgets that typically display data sets. Qt 4's model/view
|
---|
596 | framework lets you handle large data sets by separating the underlying data
|
---|
597 | from the way it is represented to the user, and provides support for
|
---|
598 | customized rendering through the use of delegates.
|
---|
599 |
|
---|
600 | \list
|
---|
601 | \o \l{itemviews/addressbook}{Address Book}\raisedaster
|
---|
602 | \o \l{itemviews/basicsortfiltermodel}{Basic Sort/Filter Model}
|
---|
603 | \o \l{itemviews/chart}{Chart}
|
---|
604 | \o \l{itemviews/coloreditorfactory}{Color Editor Factory}\raisedaster
|
---|
605 | \o \l{itemviews/combowidgetmapper}{Combo Widget Mapper}\raisedaster
|
---|
606 | \o \l{itemviews/customsortfiltermodel}{Custom Sort/Filter Model}\raisedaster
|
---|
607 | \o \l{itemviews/dirview}{Dir View}
|
---|
608 | \o \l{itemviews/editabletreemodel}{Editable Tree Model}\raisedaster
|
---|
609 | \o \l{itemviews/fetchmore}{Fetch More}\raisedaster
|
---|
610 | \o \l{itemviews/frozencolumn}{Frozen Column}\raisedaster
|
---|
611 | \o \l{itemviews/pixelator}{Pixelator}\raisedaster
|
---|
612 | \o \l{itemviews/puzzle}{Puzzle}
|
---|
613 | \o \l{itemviews/simpledommodel}{Simple DOM Model}\raisedaster
|
---|
614 | \o \l{itemviews/simpletreemodel}{Simple Tree Model}\raisedaster
|
---|
615 | \o \l{itemviews/simplewidgetmapper}{Simple Widget Mapper}\raisedaster
|
---|
616 | \o \l{itemviews/spinboxdelegate}{Spin Box Delegate}\raisedaster
|
---|
617 | \o \l{itemviews/stardelegate}{Star Delegate}\raisedaster
|
---|
618 | \endlist
|
---|
619 |
|
---|
620 | Examples marked with an asterisk (*) are fully documented.
|
---|
621 | */
|
---|
622 |
|
---|
623 | /*!
|
---|
624 | \page examples-graphicsview.html
|
---|
625 | \title Graphics View Examples
|
---|
626 |
|
---|
627 | \previouspage Item Views Examples
|
---|
628 | \contentspage Qt Examples
|
---|
629 | \nextpage Painting Examples
|
---|
630 |
|
---|
631 | \image graphicsview-examples.png
|
---|
632 |
|
---|
633 | Qt is provided with a comprehensive canvas through the GraphicsView
|
---|
634 | classes.
|
---|
635 |
|
---|
636 | These examples demonstrate the fundamental aspects of canvas programming
|
---|
637 | with Qt.
|
---|
638 |
|
---|
639 | \list
|
---|
640 | \o \l{graphicsview/collidingmice}{Colliding Mice}\raisedaster
|
---|
641 | \o \l{graphicsview/diagramscene}{Diagram Scene}\raisedaster
|
---|
642 | \o \l{graphicsview/dragdroprobot}{Drag and Drop Robot}
|
---|
643 | \o \l{graphicsview/elasticnodes}{Elastic Nodes}
|
---|
644 | \o \l{graphicsview/portedasteroids}{Ported Asteroids}
|
---|
645 | \o \l{graphicsview/portedcanvas}{Ported Canvas}
|
---|
646 | \endlist
|
---|
647 |
|
---|
648 | These examples show the use of graphics widgets and layouts.
|
---|
649 |
|
---|
650 | \list
|
---|
651 | \o \l{graphicsview/anchorlayout}{Anchor Layout}
|
---|
652 | \o \l{graphicsview/flowlayout}{Flow Layout}
|
---|
653 | \o \l{graphicsview/simpleanchorlayout}{Simple Anchor Layout}
|
---|
654 | \o \l{graphicsview/weatheranchorlayout}{Weather Anchor Layout}
|
---|
655 | \endlist
|
---|
656 |
|
---|
657 | Some examples demonstrate the use of graphics effects with canvas items.
|
---|
658 |
|
---|
659 | \list
|
---|
660 | \o \l{effects/blurpicker}{Blur Picker Effect}
|
---|
661 | \o \l{effects/fademessage}{Fade Message Effect}
|
---|
662 | \o \l{effects/lighting}{Lighting Effect}
|
---|
663 | \endlist
|
---|
664 |
|
---|
665 | Examples marked with an asterisk (*) are fully documented.
|
---|
666 | */
|
---|
667 |
|
---|
668 | /*!
|
---|
669 | \page examples-painting.html
|
---|
670 | \title Painting Examples
|
---|
671 |
|
---|
672 | \previouspage Graphics View Examples
|
---|
673 | \contentspage Qt Examples
|
---|
674 | \nextpage Rich Text Examples
|
---|
675 |
|
---|
676 | \image painting-examples.png
|
---|
677 |
|
---|
678 | Qt's painting system is able to render vector graphics, images, and outline
|
---|
679 | font-based text with sub-pixel accuracy accuracy using anti-aliasing to
|
---|
680 | improve rendering quality.
|
---|
681 |
|
---|
682 | These examples show the most common techniques that are used when painting
|
---|
683 | with Qt, from basic concepts such as drawing simple primitives to the use of
|
---|
684 | transformations.
|
---|
685 |
|
---|
686 | \list
|
---|
687 | \o \l{painting/basicdrawing}{Basic Drawing}\raisedaster
|
---|
688 | \o \l{painting/concentriccircles}{Concentric Circles}\raisedaster
|
---|
689 | \o \l{painting/fontsampler}{Font Sampler}
|
---|
690 | \o \l{painting/imagecomposition}{Image Composition}\raisedaster
|
---|
691 | \o \l{painting/painterpaths}{Painter Paths}\raisedaster
|
---|
692 | \o \l{painting/svggenerator}{SVG Generator}\raisedaster
|
---|
693 | \o \l{painting/svgviewer}{SVG Viewer}
|
---|
694 | \o \l{painting/transformations}{Transformations}\raisedaster
|
---|
695 | \endlist
|
---|
696 |
|
---|
697 | Examples marked with an asterisk (*) are fully documented.
|
---|
698 | */
|
---|
699 |
|
---|
700 | /*!
|
---|
701 | \page examples-richtext.html
|
---|
702 | \title Rich Text Examples
|
---|
703 |
|
---|
704 | \previouspage Painting Examples
|
---|
705 | \contentspage Qt Examples
|
---|
706 | \nextpage Desktop Examples
|
---|
707 |
|
---|
708 | \image richtext-examples.png
|
---|
709 |
|
---|
710 | Qt provides powerful document-oriented rich text engine that supports Unicode
|
---|
711 | and right-to-left scripts. Documents can be manipulated using a cursor-based
|
---|
712 | API, and their contents can be imported and exported as both HTML and in a
|
---|
713 | custom XML format.
|
---|
714 |
|
---|
715 | \list
|
---|
716 | \o \l{richtext/calendar}{Calendar}\raisedaster
|
---|
717 | \o \l{richtext/orderform}{Order Form}\raisedaster
|
---|
718 | \o \l{richtext/syntaxhighlighter}{Syntax Highlighter}\raisedaster
|
---|
719 | \o \l{richtext/textobject}{Text Object}\raisedaster
|
---|
720 | \endlist
|
---|
721 | */
|
---|
722 |
|
---|
723 | /*!
|
---|
724 | \page examples-desktop.html
|
---|
725 | \title Desktop Examples
|
---|
726 |
|
---|
727 | \previouspage Rich Text Examples
|
---|
728 | \contentspage Qt Examples
|
---|
729 | \nextpage Drag and Drop Examples
|
---|
730 |
|
---|
731 | \image desktop-examples.png
|
---|
732 |
|
---|
733 | Qt provides features to enable applications to integrate with the user's
|
---|
734 | preferred desktop environment.
|
---|
735 |
|
---|
736 | Features such as system tray icons, access to the desktop widget, and
|
---|
737 | support for desktop services can be used to improve the appearance of
|
---|
738 | applications and take advantage of underlying desktop facilities.
|
---|
739 |
|
---|
740 | \list
|
---|
741 | \o \l{desktop/screenshot}{Screenshot}\raisedaster
|
---|
742 | \o \l{desktop/systray}{System Tray}\raisedaster
|
---|
743 | \endlist
|
---|
744 | */
|
---|
745 |
|
---|
746 | /*!
|
---|
747 | \page examples-draganddrop.html
|
---|
748 | \title Drag and Drop Examples
|
---|
749 |
|
---|
750 | \previouspage Desktop Examples
|
---|
751 | \contentspage Qt Examples
|
---|
752 | \nextpage Threading and Concurrent Programming Examples
|
---|
753 |
|
---|
754 | \image draganddrop-examples.png
|
---|
755 |
|
---|
756 | Qt supports native drag and drop on all platforms via an extensible
|
---|
757 | MIME-based system that enables applications to send data to each other in the
|
---|
758 | most appropriate formats.
|
---|
759 |
|
---|
760 | Drag and drop can also be implemented for internal use by applications.
|
---|
761 |
|
---|
762 | \list
|
---|
763 | \o \l{draganddrop/delayedencoding}{Delayed Encoding}\raisedaster
|
---|
764 | \o \l{draganddrop/draggableicons}{Draggable Icons}
|
---|
765 | \o \l{draganddrop/draggabletext}{Draggable Text}
|
---|
766 | \o \l{draganddrop/dropsite}{Drop Site}
|
---|
767 | \o \l{draganddrop/fridgemagnets}{Fridge Magnets}\raisedaster
|
---|
768 | \o \l{draganddrop/puzzle}{Drag and Drop Puzzle}
|
---|
769 | \endlist
|
---|
770 |
|
---|
771 | Examples marked with an asterisk (*) are fully documented.
|
---|
772 | */
|
---|
773 |
|
---|
774 | /*!
|
---|
775 | \page examples-threadandconcurrent.html
|
---|
776 | \title Threading and Concurrent Programming Examples
|
---|
777 |
|
---|
778 | \previouspage Drag and Drop Examples
|
---|
779 | \contentspage Qt Examples
|
---|
780 | \nextpage Tools Examples
|
---|
781 |
|
---|
782 | \image thread-examples.png
|
---|
783 |
|
---|
784 | Qt 4 makes it easier than ever to write multithreaded applications. More
|
---|
785 | classes have been made usable from non-GUI threads, and the signals and slots
|
---|
786 | mechanism can now be used to communicate between threads.
|
---|
787 |
|
---|
788 | Additionally, it is now possible to move objects between threads.
|
---|
789 |
|
---|
790 | \list
|
---|
791 | \o \l{threads/queuedcustomtype}{Queued Custom Type}\raisedaster
|
---|
792 | \o \l{threads/mandelbrot}{Mandelbrot}\raisedaster
|
---|
793 | \o \l{threads/semaphores}{Semaphores}\raisedaster
|
---|
794 | \o \l{threads/waitconditions}{Wait Conditions}\raisedaster
|
---|
795 | \endlist
|
---|
796 |
|
---|
797 | The QtConcurrent namespace includes a collection of classes and functions
|
---|
798 | for straightforward concurrent programming.
|
---|
799 |
|
---|
800 | These examples show how to apply the basic techniques of concurrent
|
---|
801 | programming to simple problems.
|
---|
802 |
|
---|
803 | \list
|
---|
804 | \o \l{qtconcurrent/imagescaling}{QtConcurrent Asynchronous Image Scaling}
|
---|
805 | \o \l{qtconcurrent/map}{QtConcurrent Map}
|
---|
806 | \o \l{qtconcurrent/progressdialog}{QtConcurrent Progress Dialog}
|
---|
807 | \o \l{qtconcurrent/runfunction}{QtConcurrent Run Function}
|
---|
808 | \o \l{qtconcurrent/wordcount}{QtConcurrent Word Count}
|
---|
809 | \endlist
|
---|
810 |
|
---|
811 | Examples marked with an asterisk (*) are fully documented.
|
---|
812 | */
|
---|
813 |
|
---|
814 | /*!
|
---|
815 | \page examples.tools.html
|
---|
816 | \title Tools Examples
|
---|
817 |
|
---|
818 | \previouspage Threading and Concurrent Programming Examples
|
---|
819 | \contentspage Qt Examples
|
---|
820 | \nextpage Network Examples
|
---|
821 |
|
---|
822 | \image tool-examples.png
|
---|
823 |
|
---|
824 | Qt is equipped with a range of capable tool classes, from containers and
|
---|
825 | iterators to classes for string handling and manipulation.
|
---|
826 |
|
---|
827 | Other classes provide application infrastructure support, handling plugin
|
---|
828 | loading and managing configuration files.
|
---|
829 |
|
---|
830 | \list
|
---|
831 | \o \l{tools/codecs}{Codecs}
|
---|
832 | \o \l{tools/completer}{Completer}\raisedaster
|
---|
833 | \o \l{tools/customcompleter}{Custom Completer}\raisedaster
|
---|
834 | \o \l{tools/customtype}{Custom Type}\raisedaster
|
---|
835 | \o \l{tools/customtypesending}{Custom Type Sending}\raisedaster
|
---|
836 | \o \l{tools/echoplugin}{Echo Plugin}\raisedaster
|
---|
837 | \o \l{tools/i18n}{I18N}
|
---|
838 | \o \l{tools/inputpanel}{Input Panel}\raisedaster
|
---|
839 | \o \l{tools/plugandpaint}{Plug & Paint}\raisedaster
|
---|
840 | \o Plug & Paint Plugins: \l{tools/plugandpaintplugins/basictools}{Basic Tools}\raisedaster
|
---|
841 | and \l{tools/plugandpaintplugins/extrafilters}{Extra Filters}\raisedaster
|
---|
842 | \o \l{tools/regexp}{RegExp}
|
---|
843 | \o \l{tools/settingseditor}{Settings Editor}
|
---|
844 | \o \l{tools/styleplugin}{Style Plugin}\raisedaster
|
---|
845 | \o \l{tools/treemodelcompleter}{Tree Model Completer}\raisedaster
|
---|
846 | \o \l{tools/undoframework}{Undo Framework}\raisedaster
|
---|
847 | \endlist
|
---|
848 |
|
---|
849 | Examples marked with an asterisk (*) are fully documented.
|
---|
850 | */
|
---|
851 |
|
---|
852 | /*!
|
---|
853 | \page examples-network.html
|
---|
854 | \title Network Examples
|
---|
855 |
|
---|
856 | \previouspage Tools Examples
|
---|
857 | \contentspage Qt Examples
|
---|
858 | \nextpage Inter-Process Communication Examples
|
---|
859 |
|
---|
860 | \image network-examples.png
|
---|
861 |
|
---|
862 | Qt is provided with an extensive set of network classes to support both
|
---|
863 | client-based and server side network programming.
|
---|
864 |
|
---|
865 | These examples demonstrate the fundamental aspects of network programming
|
---|
866 | with Qt.
|
---|
867 |
|
---|
868 | \list
|
---|
869 | \o \l{network/blockingfortuneclient}{Blocking Fortune Client}\raisedaster
|
---|
870 | \o \l{network/broadcastreceiver}{Broadcast Receiver}
|
---|
871 | \o \l{network/broadcastsender}{Broadcast Sender}
|
---|
872 | \o \l{network/download}{Download}
|
---|
873 | \o \l{network/downloadmanager}{Download Manager}
|
---|
874 | \o \l{network/network-chat}{Network Chat}
|
---|
875 | \o \l{network/fortuneclient}{Fortune Client}\raisedaster
|
---|
876 | \o \l{network/fortuneserver}{Fortune Server}\raisedaster
|
---|
877 | \o \l{network/qftp}{FTP}\raisedaster
|
---|
878 | \o \l{network/http}{HTTP}
|
---|
879 | \o \l{network/loopback}{Loopback}
|
---|
880 | \o \l{network/threadedfortuneserver}{Threaded Fortune Server}\raisedaster
|
---|
881 | \o \l{network/torrent}{Torrent}
|
---|
882 | \o \l{network/googlesuggest}{Google Suggest}
|
---|
883 | \endlist
|
---|
884 |
|
---|
885 | Examples marked with an asterisk (*) are fully documented.
|
---|
886 | */
|
---|
887 |
|
---|
888 | /*!
|
---|
889 | \page examples-ipc.html
|
---|
890 | \title Inter-Process Communication Examples
|
---|
891 |
|
---|
892 | \previouspage Network Examples
|
---|
893 | \contentspage Qt Examples
|
---|
894 | \nextpage OpenGL Examples
|
---|
895 |
|
---|
896 | \image ipc-examples.png
|
---|
897 |
|
---|
898 | \list
|
---|
899 | \o \l{ipc/localfortuneclient}{Local Fortune Client}\raisedaster
|
---|
900 | \o \l{ipc/localfortuneserver}{Local Fortune Server}\raisedaster
|
---|
901 | \o \l{ipc/sharedmemory}{Shared Memory}\raisedaster
|
---|
902 | \endlist
|
---|
903 | */
|
---|
904 |
|
---|
905 | /*!
|
---|
906 | \page examples-opengl.html
|
---|
907 | \title OpenGL Examples
|
---|
908 |
|
---|
909 | \previouspage Inter-Process Communication Examples
|
---|
910 | \contentspage Qt Examples
|
---|
911 | \nextpage OpenVG Examples
|
---|
912 |
|
---|
913 | \image opengl-examples.png
|
---|
914 |
|
---|
915 | Qt provides support for integration with OpenGL implementations on all
|
---|
916 | platforms, giving developers the opportunity to display hardware accelerated
|
---|
917 | 3D graphics alongside a more conventional user interface.
|
---|
918 |
|
---|
919 | These examples demonstrate the basic techniques used to take advantage of
|
---|
920 | OpenGL in Qt applications.
|
---|
921 |
|
---|
922 | \list
|
---|
923 | \o \l{opengl/2dpainting}{2D Painting}\raisedaster
|
---|
924 | \o \l{opengl/framebufferobject}{Framebuffer Object}
|
---|
925 | \o \l{opengl/framebufferobject2}{Framebuffer Object 2}
|
---|
926 | \o \l{opengl/grabber}{Grabber}
|
---|
927 | \o \l{opengl/hellogl}{Hello GL}\raisedaster
|
---|
928 | \o \l{opengl/hellogl_es}{Hello GL - ported to Windows CE}\raisedaster
|
---|
929 | \o \l{opengl/overpainting}{Overpainting}\raisedaster
|
---|
930 | \o \l{opengl/pbuffers}{Pixel Buffers}
|
---|
931 | \o \l{opengl/pbuffers2}{Pixel Buffers 2}
|
---|
932 | \o \l{opengl/samplebuffers}{Sample Buffers}
|
---|
933 | \o \l{opengl/textures}{Textures}
|
---|
934 | \endlist
|
---|
935 |
|
---|
936 | Examples marked with an asterisk (*) are fully documented.
|
---|
937 | */
|
---|
938 |
|
---|
939 | /*!
|
---|
940 | \page examples-openvg.html
|
---|
941 | \title OpenVG Examples
|
---|
942 |
|
---|
943 | \previouspage OpenGL Examples
|
---|
944 | \contentspage Qt Examples
|
---|
945 | \nextpage Multimedia Examples
|
---|
946 |
|
---|
947 | \image openvg-examples.png
|
---|
948 |
|
---|
949 | Qt provides support for integration with OpenVG implementations on
|
---|
950 | platforms with suitable drivers.
|
---|
951 |
|
---|
952 | These examples demonstrate the basic techniques used to take advantage of
|
---|
953 | OpenVG in Qt applications.
|
---|
954 |
|
---|
955 | \list
|
---|
956 | \o \l{openvg/star}{OpenVG Star}
|
---|
957 | \endlist
|
---|
958 | */
|
---|
959 |
|
---|
960 | /*!
|
---|
961 | \page examples-multimedia.html
|
---|
962 | \title Multimedia Examples
|
---|
963 |
|
---|
964 | \previouspage OpenGL Examples
|
---|
965 | \contentspage Qt Examples
|
---|
966 | \nextpage SQL Examples
|
---|
967 |
|
---|
968 | \image phonon-examples.png
|
---|
969 |
|
---|
970 | \section1 Multimedia
|
---|
971 |
|
---|
972 | Qt provides low-level audio support on Linux, Windows and Mac OS X by default and
|
---|
973 | an audio plugin API to allow developers to implement their own audio support for
|
---|
974 | custom devices and platforms.
|
---|
975 |
|
---|
976 | \section1 Audio Handling
|
---|
977 |
|
---|
978 | These examples demonstrate the basic techniques used to take advantage of the
|
---|
979 | Audio API in Qt applications.
|
---|
980 |
|
---|
981 | \list
|
---|
982 | \o \l{multimedia/audiodevices}{Audio Devices}
|
---|
983 | \o \l{multimedia/audiooutput}{Audio Output}
|
---|
984 | \o \l{multimedia/audioinput}{Audio Input}
|
---|
985 | \endlist
|
---|
986 |
|
---|
987 | \section1 Video Output
|
---|
988 |
|
---|
989 | \list
|
---|
990 | \o \l{multimedia/videowidget}{Video Widget}\raisedaster
|
---|
991 | \o \l{multimedia/videographicsitem}{Video Graphics Item}
|
---|
992 | \endlist
|
---|
993 |
|
---|
994 | \section1 Phonon
|
---|
995 |
|
---|
996 | The Phonon Multimedia Framework brings multimedia support to Qt applications.
|
---|
997 |
|
---|
998 | The examples and demonstrations provided show how to play music and movies
|
---|
999 | using the Phonon API.
|
---|
1000 |
|
---|
1001 | \list
|
---|
1002 | \o \l{phonon/capabilities}{Capabilities}\raisedaster
|
---|
1003 | \o \l{phonon/qmusicplayer}{Music Player}\raisedaster
|
---|
1004 | \endlist
|
---|
1005 |
|
---|
1006 | Examples marked with an asterisk (*) are fully documented.
|
---|
1007 | */
|
---|
1008 |
|
---|
1009 | /*!
|
---|
1010 | \page examples-sql.html
|
---|
1011 | \title SQL Examples
|
---|
1012 |
|
---|
1013 | \previouspage Multimedia Examples
|
---|
1014 | \contentspage Qt Examples
|
---|
1015 | \nextpage XML Examples
|
---|
1016 |
|
---|
1017 | \image sql-examples.png
|
---|
1018 |
|
---|
1019 | Qt provides extensive database interoperability, with support for products
|
---|
1020 | from both open source and proprietary vendors.
|
---|
1021 |
|
---|
1022 | SQL support is integrated with Qt's model/view architecture, making it easier
|
---|
1023 | to provide GUI integration for your database applications.
|
---|
1024 |
|
---|
1025 | \list
|
---|
1026 | \o \l{sql/cachedtable}{Cached Table}\raisedaster
|
---|
1027 | \o \l{sql/drilldown}{Drill Down}\raisedaster
|
---|
1028 | \o \l{sql/querymodel}{Query Model}
|
---|
1029 | \o \l{sql/relationaltablemodel}{Relational Table Model}
|
---|
1030 | \o \l{sql/tablemodel}{Table Model}
|
---|
1031 | \o \l{sql/sqlwidgetmapper}{SQL Widget Mapper}\raisedaster
|
---|
1032 | \endlist
|
---|
1033 |
|
---|
1034 | Examples marked with an asterisk (*) are fully documented.
|
---|
1035 | */
|
---|
1036 |
|
---|
1037 |
|
---|
1038 | /*!
|
---|
1039 | \page examples-xml.html
|
---|
1040 | \title XML Examples
|
---|
1041 |
|
---|
1042 | \previouspage SQL Examples
|
---|
1043 | \contentspage Qt Examples
|
---|
1044 | \nextpage Qt Designer Examples
|
---|
1045 |
|
---|
1046 | \image xml-examples.png XML
|
---|
1047 |
|
---|
1048 | XML parsing and handling is supported through SAX and DOM compliant APIs
|
---|
1049 | as well as streaming classes.
|
---|
1050 |
|
---|
1051 | \list
|
---|
1052 | \o \l{xml/dombookmarks}{DOM Bookmarks}
|
---|
1053 | \o \l{xml/saxbookmarks}{SAX Bookmarks}
|
---|
1054 | \o \l{xml/streambookmarks}{QXmlStream Bookmarks}\raisedaster
|
---|
1055 | \o \l{xml/rsslisting}{RSS-Listing}
|
---|
1056 | \o \l{xml/xmlstreamlint}{XML Stream Lint Example}\raisedaster
|
---|
1057 | \endlist
|
---|
1058 |
|
---|
1059 | The XQuery/XPath and XML Schema engines in the QtXmlPatterns modules
|
---|
1060 | provide classes for querying XML files and custom data models.
|
---|
1061 |
|
---|
1062 | \list
|
---|
1063 | \o \l{xmlpatterns/recipes}{Recipes}
|
---|
1064 | \o \l{xmlpatterns/filetree}{File System Example}
|
---|
1065 | \o \l{xmlpatterns/qobjectxmlmodel}{QObject XML Model Example}
|
---|
1066 | \o \l{xmlpatterns/xquery/globalVariables}{C++ Source Code Analyzer Example}
|
---|
1067 | \o \l{xmlpatterns/trafficinfo}{Traffic Info}\raisedaster
|
---|
1068 | \o \l{xmlpatterns/schema}{XML Schema Validation}\raisedaster
|
---|
1069 | \endlist
|
---|
1070 |
|
---|
1071 | Examples marked with an asterisk (*) are fully documented.
|
---|
1072 | */
|
---|
1073 |
|
---|
1074 | /*!
|
---|
1075 | \page examples-designer.html
|
---|
1076 | \title Qt Designer Examples
|
---|
1077 |
|
---|
1078 | \previouspage XML Examples
|
---|
1079 | \contentspage Qt Examples
|
---|
1080 | \nextpage UiTools Examples
|
---|
1081 |
|
---|
1082 | \image designer-examples.png QtDesigner
|
---|
1083 |
|
---|
1084 | Qt Designer is a capable graphical user interface designer that lets you
|
---|
1085 | create and configure forms without writing code. GUIs created with
|
---|
1086 | Qt Designer can be compiled into an application or created at run-time.
|
---|
1087 |
|
---|
1088 | \list
|
---|
1089 | \o \l{designer/calculatorbuilder}{Calculator Builder}\raisedaster
|
---|
1090 | \o \l{designer/calculatorform}{Calculator Form}\raisedaster
|
---|
1091 | \o \l{designer/customwidgetplugin}{Custom Widget Plugin}\raisedaster
|
---|
1092 | \o \l{designer/taskmenuextension}{Task Menu Extension}\raisedaster
|
---|
1093 | \o \l{designer/containerextension}{Container Extension}\raisedaster
|
---|
1094 | \o \l{designer/worldtimeclockbuilder}{World Time Clock Builder}\raisedaster
|
---|
1095 | \o \l{designer/worldtimeclockplugin}{World Time Clock Plugin}\raisedaster
|
---|
1096 | \endlist
|
---|
1097 | */
|
---|
1098 |
|
---|
1099 | /*!
|
---|
1100 | \page examples-uitools.html
|
---|
1101 | \title UiTools Examples
|
---|
1102 |
|
---|
1103 | \previouspage Qt Designer Examples
|
---|
1104 | \contentspage Qt Examples
|
---|
1105 | \nextpage Qt Linguist Examples
|
---|
1106 |
|
---|
1107 | \image uitools-examples.png UiTools
|
---|
1108 |
|
---|
1109 | \list
|
---|
1110 | \o \l{uitools/multipleinheritance}{Multiple Inheritance}\raisedaster
|
---|
1111 | \o \l{uitools/textfinder}{Text Finder}\raisedaster
|
---|
1112 | \endlist
|
---|
1113 | */
|
---|
1114 |
|
---|
1115 | /*!
|
---|
1116 | \page examples-linguist.html
|
---|
1117 | \title Qt Linguist Examples
|
---|
1118 |
|
---|
1119 | \previouspage UiTools Examples
|
---|
1120 | \contentspage Qt Examples
|
---|
1121 | \nextpage Qt Script Examples
|
---|
1122 |
|
---|
1123 | \image linguist-examples.png
|
---|
1124 |
|
---|
1125 | Internationalization is a core feature of Qt. These examples show how to
|
---|
1126 | access translation and localization facilities at run-time.
|
---|
1127 |
|
---|
1128 | \list
|
---|
1129 | \o \l{linguist/hellotr}{Hello tr()}\raisedaster
|
---|
1130 | \o \l{linguist/arrowpad}{Arrow Pad}\raisedaster
|
---|
1131 | \o \l{linguist/trollprint}{Troll Print}\raisedaster
|
---|
1132 | \endlist
|
---|
1133 | */
|
---|
1134 |
|
---|
1135 | /*!
|
---|
1136 | \page examples-script.html
|
---|
1137 | \title Qt Script Examples
|
---|
1138 |
|
---|
1139 | \previouspage Qt Linguist Examples
|
---|
1140 | \contentspage Qt Examples
|
---|
1141 | \nextpage WebKit Examples
|
---|
1142 |
|
---|
1143 | \image qtscript-examples.png QtScript
|
---|
1144 |
|
---|
1145 | Qt is provided with a powerful embedded scripting environment through the QtScript
|
---|
1146 | classes.
|
---|
1147 |
|
---|
1148 | These examples demonstrate the fundamental aspects of scripting applications
|
---|
1149 | with Qt.
|
---|
1150 |
|
---|
1151 | \list
|
---|
1152 | \o \l{script/calculator}{Calculator}\raisedaster
|
---|
1153 | \o \l{script/context2d}{Context2D}\raisedaster
|
---|
1154 | \o \l{script/defaultprototypes}{Default Prototypes}\raisedaster
|
---|
1155 | \o \l{script/helloscript}{Hello Script}\raisedaster
|
---|
1156 | \o \l{script/marshal}{Qt Script Marshalling}
|
---|
1157 | \o \l{script/qscript}{Qt Script Interpreter}
|
---|
1158 | \o \l{script/qsdbg}{Qt Script Debugging}
|
---|
1159 | \o \l{script/qstetrix}{Qt Script Tetrix}\raisedaster
|
---|
1160 | \o \l{script/customclass}{Custom Script Class}\raisedaster
|
---|
1161 | \endlist
|
---|
1162 | */
|
---|
1163 |
|
---|
1164 | /*!
|
---|
1165 | \page examples-webkit.html
|
---|
1166 | \title WebKit Examples
|
---|
1167 |
|
---|
1168 | \previouspage Qt Script Examples
|
---|
1169 | \contentspage Qt Examples
|
---|
1170 | \nextpage Help System Examples
|
---|
1171 |
|
---|
1172 | \image webkit-examples.png WebKit
|
---|
1173 |
|
---|
1174 | Qt provides an integrated Web browser component based on WebKit, the popular
|
---|
1175 | open source browser engine.
|
---|
1176 |
|
---|
1177 | These examples and demonstrations show a range of different uses for WebKit,
|
---|
1178 | from displaying Web pages within a Qt user interface to an implementation of
|
---|
1179 | a basic function Web browser.
|
---|
1180 |
|
---|
1181 | \table
|
---|
1182 | \header \o Example \o Description
|
---|
1183 | \row \o \l{webkit/domtraversal}{DOM Traversal}\raisedaster
|
---|
1184 | \o Shows how to use QWebElement to inspect the document structure of a Web page.
|
---|
1185 | \row \o \l{webkit/fancybrowser}{Fancy Browser}
|
---|
1186 | \o A more advanced browser example, showing the use of jQuery to perform effects.
|
---|
1187 | \row \o \l{webkit/formextractor}{Form Extractor}
|
---|
1188 | \o How to use JavaScript and C++ together to read page content.
|
---|
1189 | \row \o \l{webkit/framecapture}{Frame Capture}
|
---|
1190 | \o How to use the WebKit browser engine to obtain images of Web pages.
|
---|
1191 | \row \o \l{webkit/googlechat}{Google Chat}
|
---|
1192 | \o A real-world example that shows how an existing Web-based service can be accessed
|
---|
1193 | using QtWebKit.
|
---|
1194 | \row \o \l{webkit/previewer}{Previewer}\raisedaster
|
---|
1195 | \o Shows how to make a simple Web page previewer by using Qt's text input widgets
|
---|
1196 | together with a QWebView widget.
|
---|
1197 | \row \o \l{webkit/simpleselector}{Simple Selector}\raisedaster
|
---|
1198 | \o A basic demonstration, showing how to use QWebElement to select elements in a
|
---|
1199 | Web page.
|
---|
1200 | \endtable
|
---|
1201 |
|
---|
1202 | Examples marked with an asterisk (*) are fully documented.
|
---|
1203 | */
|
---|
1204 |
|
---|
1205 | /*!
|
---|
1206 | \page examples-helpsystem.html
|
---|
1207 | \title Help System Examples
|
---|
1208 |
|
---|
1209 | \previouspage WebKit Examples
|
---|
1210 | \contentspage Qt Examples
|
---|
1211 | \nextpage State Machine Examples
|
---|
1212 |
|
---|
1213 | \image assistant-examples.png HelpSystem
|
---|
1214 |
|
---|
1215 | Support for interactive help is provided by the Qt Assistant application.
|
---|
1216 | Developers can take advantages of the facilities it offers to display
|
---|
1217 | specially-prepared documentation to users of their applications.
|
---|
1218 |
|
---|
1219 | \list
|
---|
1220 | \o \l{help/simpletextviewer}{Simple Text Viewer}\raisedaster
|
---|
1221 | \endlist
|
---|
1222 |
|
---|
1223 | Examples marked with an asterisk (*) are fully documented.
|
---|
1224 | */
|
---|
1225 |
|
---|
1226 | /*!
|
---|
1227 | \page examples-statemachine.html
|
---|
1228 | \title State Machine Examples
|
---|
1229 |
|
---|
1230 | \previouspage Help System Examples
|
---|
1231 | \contentspage Qt Examples
|
---|
1232 | \nextpage Animation Framework Examples
|
---|
1233 |
|
---|
1234 | \image statemachine-examples.png StateMachine
|
---|
1235 |
|
---|
1236 | Qt provides a powerful hierarchical finite state machine through the Qt State
|
---|
1237 | Machine classes.
|
---|
1238 |
|
---|
1239 | These examples demonstrate the fundamental aspects of implementing
|
---|
1240 | Statecharts with Qt.
|
---|
1241 |
|
---|
1242 | \list
|
---|
1243 | \o \l{statemachine/eventtransitions}{Event Transitions}\raisedaster
|
---|
1244 | \o \l{statemachine/factorial}{Factorial States}\raisedaster
|
---|
1245 | \o \l{statemachine/pingpong}{Ping Pong States}\raisedaster
|
---|
1246 | \o \l{statemachine/rogue}{Rogue}\raisedaster
|
---|
1247 | \o \l{statemachine/trafficlight}{Traffic Light}\raisedaster
|
---|
1248 | \o \l{statemachine/twowaybutton}{Two-way Button}\raisedaster
|
---|
1249 | \endlist
|
---|
1250 | */
|
---|
1251 |
|
---|
1252 | /*!
|
---|
1253 | \page examples-animation.html
|
---|
1254 | \title Animation Framework Examples
|
---|
1255 |
|
---|
1256 | \previouspage State Machine Examples
|
---|
1257 | \contentspage Qt Examples
|
---|
1258 | \nextpage Multi-Touch Examples
|
---|
1259 |
|
---|
1260 | \image animation-examples.png Animation
|
---|
1261 |
|
---|
1262 | \list
|
---|
1263 | \o \l{animation/animatedtiles}{Animated Tiles}
|
---|
1264 | \o \l{animation/appchooser}{Application Chooser}
|
---|
1265 | \o \l{animation/easing}{Easing Curves}
|
---|
1266 | \o \l{animation/moveblocks}{Move Blocks}\raisedaster
|
---|
1267 | \o \l{animation/states}{States}
|
---|
1268 | \o \l{animation/stickman}{Stick man}\raisedaster
|
---|
1269 | \endlist
|
---|
1270 |
|
---|
1271 | Examples marked with an asterisk (*) are fully documented.
|
---|
1272 | */
|
---|
1273 |
|
---|
1274 | /*!
|
---|
1275 | \page examples-multitouch.html
|
---|
1276 | \title Multi-Touch Examples
|
---|
1277 |
|
---|
1278 | \previouspage Animation Framework Examples
|
---|
1279 | \contentspage Qt Examples
|
---|
1280 | \nextpage Gestures Examples
|
---|
1281 |
|
---|
1282 | Support for multi-touch input makes it possible for developers to create
|
---|
1283 | extensible and intuitive user interfaces.
|
---|
1284 |
|
---|
1285 | \list
|
---|
1286 | \o \l{multitouch/dials}{Multi-Touch Dials}
|
---|
1287 | \o \l{multitouch/fingerpaint}{Finger Paint}
|
---|
1288 | \o \l{multitouch/knobs}{Multi-Touch Knobs}
|
---|
1289 | \o \l{multitouch/pinchzoom}{Pinch Zoom}
|
---|
1290 | \endlist
|
---|
1291 | */
|
---|
1292 |
|
---|
1293 | /*!
|
---|
1294 | \page examples-gestures.html
|
---|
1295 | \title Gestures Examples
|
---|
1296 |
|
---|
1297 | \previouspage Multi-Touch Examples
|
---|
1298 | \contentspage Qt Examples
|
---|
1299 | \nextpage D-Bus Examples
|
---|
1300 |
|
---|
1301 | The API of the gesture framework is not yet finalized and
|
---|
1302 | still subject to change.
|
---|
1303 |
|
---|
1304 | \list
|
---|
1305 | \o \l{gestures/imagegestures}{Image Gestures}
|
---|
1306 | \endlist
|
---|
1307 | */
|
---|
1308 |
|
---|
1309 | /*!
|
---|
1310 | \page examples-dbus.html
|
---|
1311 | \title D-Bus Examples
|
---|
1312 |
|
---|
1313 | \previouspage Gestures Examples
|
---|
1314 | \contentspage Qt Examples
|
---|
1315 | \nextpage Qt for Embedded Linux Examples
|
---|
1316 |
|
---|
1317 | \list
|
---|
1318 | \o \l{dbus/dbus-chat}{Chat}
|
---|
1319 | \o \l{dbus/complexpingpong}{Complex Ping Pong}
|
---|
1320 | \o \l{dbus/listnames}{List Names}
|
---|
1321 | \o \l{dbus/pingpong}{Ping Pong}
|
---|
1322 | \o \l{dbus/remotecontrolledcar}{Remote Controlled Car}
|
---|
1323 | \endlist
|
---|
1324 |
|
---|
1325 | Examples marked with an asterisk (*) are fully documented.
|
---|
1326 | */
|
---|
1327 |
|
---|
1328 | /*!
|
---|
1329 | \page examples-embeddedlinux.html
|
---|
1330 | \title Qt for Embedded Linux Examples
|
---|
1331 |
|
---|
1332 | \previouspage D-Bus Examples
|
---|
1333 | \contentspage Qt Examples
|
---|
1334 | \nextpage ActiveQt Examples
|
---|
1335 |
|
---|
1336 | \image qt-embedded-examples.png QtEmbedded
|
---|
1337 |
|
---|
1338 | These examples show how to take advantage of features specifically designed
|
---|
1339 | for use on systems with limited resources, specialized hardware, and small
|
---|
1340 | screens.
|
---|
1341 |
|
---|
1342 | \list
|
---|
1343 | \o \l{qws/svgalib}{Accelerated Graphics Driver}\raisedaster
|
---|
1344 | \o \l{qws/dbscreen}{Double Buffered Graphics Driver}\raisedaster
|
---|
1345 | \o \l{qws/mousecalibration}{Mouse Calibration}\raisedaster
|
---|
1346 | \o \l{qws/simpledecoration}{Simple Decoration}\raisedaster
|
---|
1347 | \endlist
|
---|
1348 | */
|
---|
1349 |
|
---|
1350 | /*!
|
---|
1351 | \page examples-activeqt.html
|
---|
1352 | \title ActiveQt Examples
|
---|
1353 |
|
---|
1354 | \previouspage Qt for Embedded Linux Examples
|
---|
1355 | \contentspage Qt Examples
|
---|
1356 | \nextpage Qt Quarterly
|
---|
1357 |
|
---|
1358 | \image activeqt-examples.png ActiveQt
|
---|
1359 |
|
---|
1360 | \list
|
---|
1361 | \o \l{activeqt/comapp}{COM App}\raisedaster
|
---|
1362 | \o \l{Dot Net Example (ActiveQt)}{Dot Net}\raisedaster
|
---|
1363 | \o \l{activeqt/hierarchy}{Hierarchy}\raisedaster
|
---|
1364 | \o \l{activeqt/menus}{Menus}\raisedaster
|
---|
1365 | \o \l{activeqt/multiple}{Multiple}\raisedaster
|
---|
1366 | \o \l{activeqt/opengl}{OpenGL}\raisedaster
|
---|
1367 | \o \l{activeqt/qutlook}{Qutlook}\raisedaster
|
---|
1368 | \o \l{activeqt/simple}{Simple}\raisedaster
|
---|
1369 | \o \l{activeqt/webbrowser}{Web Browser}\raisedaster
|
---|
1370 | \o \l{activeqt/wrapper}{Wrapper}\raisedaster
|
---|
1371 | \endlist
|
---|
1372 | */
|
---|