0
|
1 |
/****************************************************************************
|
|
2 |
**
|
|
3 |
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
** All rights reserved.
|
|
5 |
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
6 |
**
|
|
7 |
** This file is part of the documentation of the Qt Toolkit.
|
|
8 |
**
|
|
9 |
** $QT_BEGIN_LICENSE:LGPL$
|
|
10 |
** No Commercial Usage
|
|
11 |
** This file contains pre-release code and may not be distributed.
|
|
12 |
** You may use this file in accordance with the terms and conditions
|
|
13 |
** contained in the Technology Preview License Agreement accompanying
|
|
14 |
** this package.
|
|
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 |
** If you have questions regarding the use of this file, please contact
|
|
29 |
** Nokia at qt-info@nokia.com.
|
|
30 |
**
|
|
31 |
**
|
|
32 |
**
|
|
33 |
**
|
|
34 |
**
|
|
35 |
**
|
|
36 |
**
|
|
37 |
**
|
|
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 |
\table
|
|
78 |
\row
|
|
79 |
\o{2,1} \l{Widgets Examples}{\bold Widgets}
|
|
80 |
\o{2,1} \l{Dialog Examples}{\bold Dialogs}
|
|
81 |
\row
|
|
82 |
\o \image widget-examples.png
|
|
83 |
\o
|
|
84 |
Qt comes with a large range of standard widgets that users of modern
|
|
85 |
applications have come to expect. You can also develop your own custom
|
|
86 |
widgets and controls, and use them alongside standard widgets.
|
|
87 |
|
|
88 |
It is even possible to provide custom styles and themes for widgets that can
|
|
89 |
be used to change the appearance of standard widgets and appropriately
|
|
90 |
written custom widgets.
|
|
91 |
|
|
92 |
\o \image dialog-examples.png Dialogs
|
|
93 |
\o
|
|
94 |
Qt includes standard dialogs for many common operations, such as file
|
|
95 |
selection, printing, and color selection.
|
|
96 |
|
|
97 |
Custom dialogs can also be created for specialized modal or modeless
|
|
98 |
interactions with users.
|
|
99 |
|
|
100 |
\row
|
|
101 |
\o{2,1} \l{Main Window Examples}{\bold{Main Windows}}
|
|
102 |
\o{2,1} \l{Layout Examples}{\bold Layouts}
|
|
103 |
|
|
104 |
\row
|
|
105 |
\o \image mainwindow-examples.png MainWindows
|
|
106 |
\o All the standard features of application main windows are provided by Qt.
|
|
107 |
|
|
108 |
Main windows can have pull down menus, tool bars, and dock windows. These
|
|
109 |
separate forms of user input are unified in an integrated action system that
|
|
110 |
also supports keyboard shortcuts and accelerator keys in menu items.
|
|
111 |
|
|
112 |
\o \image layout-examples.png Layouts
|
|
113 |
\o
|
|
114 |
Qt uses a layout-based approach to widget management. Widgets are arranged in
|
|
115 |
the optimal positions in windows based on simple layout rules, leading to a
|
|
116 |
consistent look and feel.
|
|
117 |
|
|
118 |
Custom layouts can be used to provide more control over the positions and
|
|
119 |
sizes of child widgets.
|
|
120 |
|
|
121 |
\row
|
|
122 |
\o{2,1} \l{Item Views Examples}{\bold{Item Views}}
|
|
123 |
\o{2,1} \l{Graphics View Examples}{\bold{Graphics View}}
|
|
124 |
\row
|
|
125 |
\o \image itemview-examples.png ItemViews
|
|
126 |
\o
|
|
127 |
Item views are widgets that typically display data sets. Qt 4's model/view
|
|
128 |
framework lets you handle large data sets by separating the underlying data
|
|
129 |
from the way it is represented to the user, and provides support for
|
|
130 |
customized rendering through the use of delegates.
|
|
131 |
|
|
132 |
\o \image graphicsview-examples.png GraphicsView
|
|
133 |
\o
|
|
134 |
Qt is provided with a comprehensive canvas through the GraphicsView
|
|
135 |
classes.
|
|
136 |
|
|
137 |
\row
|
|
138 |
\o{2,1} \l{Painting Examples}{\bold{Painting}}
|
|
139 |
\o{2,1} \l{Rich Text Examples}{\bold{Rich Text}}
|
|
140 |
\row
|
|
141 |
\o \image painting-examples.png Painting
|
|
142 |
\o
|
|
143 |
Qt's painting system is able to render vector graphics, images, and outline
|
|
144 |
font-based text with sub-pixel accuracy accuracy using anti-aliasing to
|
|
145 |
improve rendering quality.
|
|
146 |
|
|
147 |
\o \image richtext-examples.png RichText
|
|
148 |
\o
|
|
149 |
Qt provides powerful document-oriented rich text engine that supports Unicode
|
|
150 |
and right-to-left scripts. Documents can be manipulated using a cursor-based
|
|
151 |
API, and their contents can be imported and exported as both HTML and in a
|
|
152 |
custom XML format.
|
|
153 |
|
|
154 |
\row
|
|
155 |
\o{2,1} \l{Desktop Examples}{\bold Desktop}
|
|
156 |
\o{2,1} \l{Drag and Drop Examples}{\bold{Drag and Drop}}
|
|
157 |
\row
|
|
158 |
\o \image desktop-examples.png
|
|
159 |
\o
|
|
160 |
Qt provides features to enable applications to integrate with the user's
|
|
161 |
preferred desktop environment.
|
|
162 |
|
|
163 |
Features such as system tray icons, access to the desktop widget, and
|
|
164 |
support for desktop services can be used to improve the appearance of
|
|
165 |
applications and take advantage of underlying desktop facilities.
|
|
166 |
|
|
167 |
\o \image draganddrop-examples.png DragAndDrop
|
|
168 |
\o
|
|
169 |
Qt supports native drag and drop on all platforms via an extensible
|
|
170 |
MIME-based system that enables applications to send data to each other in the
|
|
171 |
most appropriate formats.
|
|
172 |
|
|
173 |
Drag and drop can also be implemented for internal use by applications.
|
|
174 |
|
|
175 |
\row
|
|
176 |
\o{2,1} \l{Threading and Concurrent Programming Examples}{\bold{Threading and Concurrent Programming}}
|
|
177 |
\o{2,1} \l{Tools Examples}{\bold{Tools}}
|
|
178 |
\row
|
|
179 |
\o \image thread-examples.png
|
|
180 |
\o
|
|
181 |
Qt 4 makes it easier than ever to write multithreaded applications. More
|
|
182 |
classes have been made usable from non-GUI threads, and the signals and slots
|
|
183 |
mechanism can now be used to communicate between threads.
|
|
184 |
|
|
185 |
The QtConcurrent namespace includes a collection of classes and functions
|
|
186 |
for straightforward concurrent programming.
|
|
187 |
|
|
188 |
\o \image tool-examples.png Tools
|
|
189 |
\o
|
|
190 |
Qt is equipped with a range of capable tool classes, from containers and
|
|
191 |
iterators to classes for string handling and manipulation.
|
|
192 |
|
|
193 |
Other classes provide application infrastructure support, handling plugin
|
|
194 |
loading and managing configuration files.
|
|
195 |
|
|
196 |
\row
|
|
197 |
\o{2,1} \l{Network Examples}{\bold{Network}}
|
|
198 |
\o{2,1} \l{Inter-Process Communication Examples}{\bold{Inter-Process Communication}}
|
|
199 |
\row
|
|
200 |
\o \image network-examples.png Network
|
|
201 |
\o
|
|
202 |
Qt is provided with an extensive set of network classes to support both
|
|
203 |
client-based and server side network programming.
|
|
204 |
|
|
205 |
\o \image ipc-examples.png IPC
|
|
206 |
\o
|
|
207 |
|
|
208 |
\row
|
|
209 |
\o{2,1} \l{OpenGL Examples}{\bold OpenGL}
|
|
210 |
\o{2,1} \l{Multimedia Examples}{\bold{Multimedia Framework}}
|
|
211 |
\row
|
|
212 |
\o \image opengl-examples.png OpenGL
|
|
213 |
\o
|
|
214 |
Qt provides support for integration with OpenGL implementations on all
|
|
215 |
platforms, giving developers the opportunity to display hardware accelerated
|
|
216 |
3D graphics alongside a more conventional user interface.
|
|
217 |
|
|
218 |
\o \image phonon-examples.png
|
|
219 |
\o
|
|
220 |
Qt provides low-level audio support on linux,windows and mac platforms by default and
|
|
221 |
an audio plugin API to allow developers to implement there own audio support for
|
|
222 |
custom devices and platforms.
|
|
223 |
|
|
224 |
The Phonon Multimedia Framework brings multimedia support to Qt applications.
|
|
225 |
|
|
226 |
\row
|
|
227 |
\o{2,1} \l{SQL Examples}{\bold{SQL}}
|
|
228 |
\o{2,1} \l{XML Examples}{\bold{XML}}
|
|
229 |
\row
|
|
230 |
\o \image sql-examples.png SQL
|
|
231 |
\o
|
|
232 |
Qt provides extensive database interoperability, with support for products
|
|
233 |
from both open source and proprietary vendors.
|
|
234 |
|
|
235 |
SQL support is integrated with Qt's model/view architecture, making it easier
|
|
236 |
to provide GUI integration for your database applications.
|
|
237 |
|
|
238 |
\o \image xml-examples.png XML
|
|
239 |
\o
|
|
240 |
XML parsing and handling is supported through SAX and DOM compliant APIs
|
|
241 |
as well as streaming classes.
|
|
242 |
|
|
243 |
The XQuery/XPath and XML Schema engines in the QtXmlPatterns modules
|
|
244 |
provide classes for querying XML files and custom data models.
|
|
245 |
|
|
246 |
\row
|
|
247 |
\o{2,1} \l{Qt Designer Examples}{\bold{Qt Designer}}
|
|
248 |
\o{2,1} \l{UiTools Examples}{\bold UiTools}
|
|
249 |
\row
|
|
250 |
\o \image designer-examples.png Designer
|
|
251 |
\o
|
|
252 |
Qt Designer is a capable graphical user interface designer that lets you
|
|
253 |
create and configure forms without writing code. GUIs created with
|
|
254 |
Qt Designer can be compiled into an application or created at run-time.
|
|
255 |
|
|
256 |
\o \image uitools-examples.png UiTools
|
|
257 |
\o
|
|
258 |
|
|
259 |
\row
|
|
260 |
\o{2,1} \l{Qt Linguist Examples}{\bold{Qt Linguist}}
|
|
261 |
\o{2,1} \l{Qt Script Examples}{\bold{Qt Script}}
|
|
262 |
\row
|
|
263 |
\o \image linguist-examples.png QtLinguist
|
|
264 |
\o
|
|
265 |
Internationalization is a core feature of Qt.
|
|
266 |
|
|
267 |
\o \image qtscript-examples.png
|
|
268 |
\o
|
|
269 |
Qt is provided with a powerful embedded scripting environment through the QtScript
|
|
270 |
classes.
|
|
271 |
|
|
272 |
\row
|
|
273 |
\o{2,1} \l{WebKit Examples}{\bold WebKit}
|
|
274 |
\o{2,1} \l{Help System Examples}{\bold{Help System}}
|
|
275 |
\row
|
|
276 |
\o \image webkit-examples.png
|
|
277 |
\o
|
|
278 |
Qt provides an integrated Web browser component based on WebKit, the popular
|
|
279 |
open source browser engine.
|
|
280 |
|
|
281 |
\o \image assistant-examples.png HelpSystem
|
|
282 |
\o
|
|
283 |
Support for interactive help is provided by the Qt Assistant application.
|
|
284 |
Developers can take advantages of the facilities it offers to display
|
|
285 |
specially-prepared documentation to users of their applications.
|
|
286 |
|
|
287 |
\row
|
|
288 |
\o{2,1} \l{State Machine Examples}{\bold{State Machine}}
|
|
289 |
\o{2,1} \l{Animation Framework Examples}{\bold{Animation Framework}}
|
|
290 |
\row
|
|
291 |
\o \image statemachine-examples.png
|
|
292 |
\o
|
|
293 |
Qt provides a powerful hierarchical finite state machine through the Qt State
|
|
294 |
Machine classes.
|
|
295 |
|
|
296 |
\o \image animation-examples.png
|
|
297 |
\o
|
|
298 |
These examples show to to use the \l{The Animation Framework}{animation framework}
|
|
299 |
to build highly animated, high-performance GUIs.
|
|
300 |
|
|
301 |
\row
|
|
302 |
\o{2,1} \l{Gestures Examples}{\bold{Gestures}}
|
|
303 |
\o{2,1} \l{D-Bus Examples}{\bold{D-Bus}}
|
|
304 |
\row
|
|
305 |
\o \image gestures-examples.png
|
|
306 |
\o
|
|
307 |
Applications can be written to respond to gestures as a natural input method.
|
|
308 |
These examples show how to enable support for standard and custom gestures in
|
|
309 |
applications.
|
|
310 |
|
|
311 |
\o \image dbus-examples.png D-Bus
|
|
312 |
\o
|
|
313 |
D-Bus is an inter-process communication protocol for Unix/Linux systems.
|
|
314 |
These examples demonstrate how to write application that communicate with
|
|
315 |
each other.
|
|
316 |
\row
|
|
317 |
\o{2,1} \l{Qt for Embedded Linux Examples}{\bold{Qt for Embedded Linux}}
|
|
318 |
\o{2,1} \l{ActiveQt Examples}{\bold ActiveQt}
|
|
319 |
\row
|
|
320 |
\o \image qt-embedded-examples.png
|
|
321 |
\o
|
|
322 |
Systems with limited resources, specialized hardware, and small
|
|
323 |
screens require special attention.
|
|
324 |
|
|
325 |
\o \image activeqt-examples.png ActiveQt
|
|
326 |
\o
|
|
327 |
These examples demonstrate how to write ActiveX controls and control servers
|
|
328 |
with Qt, and how to use ActiveX controls and COM objects in a Qt application.
|
|
329 |
|
|
330 |
\row
|
|
331 |
\o{2,1} \l{Qt Quarterly}{\bold{Qt Quarterly}}
|
|
332 |
\row
|
|
333 |
\o \image qq-thumbnail.png QtQuarterly
|
|
334 |
\o
|
|
335 |
One more valuable source for examples and explanations of Qt
|
|
336 |
features is the archive of the \l {Qt Quarterly}.
|
|
337 |
|
|
338 |
\endtable
|
|
339 |
|
|
340 |
\omit
|
|
341 |
In the list below, examples marked with an asterisk (*) are fully
|
|
342 |
documented. Eventually, all the examples will be fully documented,
|
|
343 |
but sometimes we include an example before we have time to write
|
|
344 |
about it.
|
|
345 |
\endomit
|
|
346 |
*/
|
|
347 |
|
|
348 |
/*!
|
|
349 |
\page examples-widgets.html
|
|
350 |
\title Widgets Examples
|
|
351 |
|
|
352 |
\contentspage Qt Examples
|
|
353 |
\nextpage Dialog Examples
|
|
354 |
|
|
355 |
\image widget-examples.png
|
|
356 |
|
|
357 |
Qt comes with a large range of standard widgets that users of modern
|
|
358 |
applications have come to expect.
|
|
359 |
|
|
360 |
You can also develop your own custom widgets and controls, and use them
|
|
361 |
alongside standard widgets.
|
|
362 |
|
|
363 |
It is even possible to provide custom styles and themes for widgets that can
|
|
364 |
be used to change the appearance of standard widgets and appropriately
|
|
365 |
written custom widgets.
|
|
366 |
|
|
367 |
\list
|
|
368 |
\o \l{widgets/analogclock}{Analog Clock}\raisedaster
|
|
369 |
\o \l{widgets/calculator}{Calculator}\raisedaster
|
|
370 |
\o \l{widgets/calendarwidget}{Calendar Widget}\raisedaster
|
|
371 |
\o \l{widgets/charactermap}{Character Map}\raisedaster
|
|
372 |
\o \l{widgets/codeeditor}{Code Editor}\raisedaster
|
|
373 |
\o \l{widgets/digitalclock}{Digital Clock}\raisedaster
|
|
374 |
\o \l{widgets/groupbox}{Group Box}\raisedaster
|
|
375 |
\o \l{widgets/icons}{Icons}\raisedaster
|
|
376 |
\o \l{widgets/imageviewer}{Image Viewer}\raisedaster
|
|
377 |
\o \l{widgets/lineedits}{Line Edits}\raisedaster
|
|
378 |
\o \l{widgets/movie}{Movie}
|
|
379 |
\o \l{widgets/scribble}{Scribble}\raisedaster
|
|
380 |
\o \l{widgets/shapedclock}{Shaped Clock}\raisedaster
|
|
381 |
\o \l{widgets/sliders}{Sliders}\raisedaster
|
|
382 |
\o \l{widgets/spinboxes}{Spin Boxes}\raisedaster
|
|
383 |
\o \l{widgets/styles}{Styles}\raisedaster
|
|
384 |
\o \l{widgets/stylesheet}{Style Sheet}\raisedaster
|
|
385 |
\o \l{widgets/tablet}{Tablet}\raisedaster
|
|
386 |
\o \l{widgets/tetrix}{Tetrix}\raisedaster
|
|
387 |
\o \l{widgets/tooltips}{Tooltips}\raisedaster
|
|
388 |
\o \l{widgets/wiggly}{Wiggly}\raisedaster
|
|
389 |
\o \l{widgets/windowflags}{Window Flags}\raisedaster
|
|
390 |
\endlist
|
|
391 |
*/
|
|
392 |
|
|
393 |
/*!
|
|
394 |
\page examples-dialogs.html
|
|
395 |
\title Dialog Examples
|
|
396 |
|
|
397 |
\previouspage Widgets Examples
|
|
398 |
\contentspage Qt Examples
|
|
399 |
\nextpage Main Window Examples
|
|
400 |
|
|
401 |
\image dialog-examples.png
|
|
402 |
|
|
403 |
Qt includes standard dialogs for many common operations, such as file
|
|
404 |
selection, printing, and color selection.
|
|
405 |
|
|
406 |
Custom dialogs can also be created for specialized modal or modeless
|
|
407 |
interactions with users.
|
|
408 |
|
|
409 |
\list
|
|
410 |
\o \l{dialogs/classwizard}{Class Wizard}\raisedaster
|
|
411 |
\o \l{dialogs/configdialog}{Config Dialog}
|
|
412 |
\o \l{dialogs/extension}{Extension}\raisedaster
|
|
413 |
\o \l{dialogs/findfiles}{Find Files}\raisedaster
|
|
414 |
\o \l{dialogs/licensewizard}{License Wizard}\raisedaster
|
|
415 |
\o \l{dialogs/standarddialogs}{Standard Dialogs}
|
|
416 |
\o \l{dialogs/tabdialog}{Tab Dialog}\raisedaster
|
|
417 |
\o \l{dialogs/trivialwizard}{Trivial Wizard}
|
|
418 |
\endlist
|
|
419 |
*/
|
|
420 |
|
|
421 |
/*!
|
|
422 |
\page examples-mainwindow.html
|
|
423 |
\title Main Window Examples
|
|
424 |
|
|
425 |
\previouspage Dialog Examples
|
|
426 |
\contentspage Qt Examples
|
|
427 |
\nextpage Layout Examples
|
|
428 |
|
|
429 |
\image mainwindow-examples.png
|
|
430 |
|
|
431 |
All the standard features of application main windows are provided by Qt.
|
|
432 |
|
|
433 |
Main windows can have pull down menus, tool bars, and dock windows. These
|
|
434 |
separate forms of user input are unified in an integrated action system that
|
|
435 |
also supports keyboard shortcuts and accelerator keys in menu items.
|
|
436 |
|
|
437 |
\list
|
|
438 |
\o \l{mainwindows/application}{Application}\raisedaster
|
|
439 |
\o \l{mainwindows/dockwidgets}{Dock Widgets}\raisedaster
|
|
440 |
\o \l{mainwindows/mdi}{MDI}
|
|
441 |
\o \l{mainwindows/menus}{Menus}\raisedaster
|
|
442 |
\o \l{mainwindows/recentfiles}{Recent Files}
|
|
443 |
\o \l{mainwindows/sdi}{SDI}
|
|
444 |
\endlist
|
|
445 |
*/
|
|
446 |
|
|
447 |
/*!
|
|
448 |
\page examples-layouts.html
|
|
449 |
\title Layout Examples
|
|
450 |
|
|
451 |
\previouspage Main Window Examples
|
|
452 |
\contentspage Qt Examples
|
|
453 |
\nextpage Item Views Examples
|
|
454 |
|
|
455 |
\image layout-examples.png
|
|
456 |
|
|
457 |
Qt uses a layout-based approach to widget management. Widgets are arranged in
|
|
458 |
the optimal positions in windows based on simple layout rules, leading to a
|
|
459 |
consistent look and feel.
|
|
460 |
|
|
461 |
Custom layouts can be used to provide more control over the positions and
|
|
462 |
sizes of child widgets.
|
|
463 |
|
|
464 |
\list
|
|
465 |
\o \l{layouts/basiclayouts}{Basic Layouts}\raisedaster
|
|
466 |
\o \l{layouts/borderlayout}{Border Layout}
|
|
467 |
\o \l{layouts/dynamiclayouts}{Dynamic Layouts}
|
|
468 |
\o \l{layouts/flowlayout}{Flow Layout}
|
|
469 |
\endlist
|
|
470 |
*/
|
|
471 |
|
|
472 |
/*!
|
|
473 |
\page examples-itemviews.html
|
|
474 |
\title Item Views Examples
|
|
475 |
|
|
476 |
\previouspage Layout Examples
|
|
477 |
\contentspage Qt Examples
|
|
478 |
\nextpage Graphics View Examples
|
|
479 |
|
|
480 |
\image itemview-examples.png
|
|
481 |
|
|
482 |
Item views are widgets that typically display data sets. Qt 4's model/view
|
|
483 |
framework lets you handle large data sets by separating the underlying data
|
|
484 |
from the way it is represented to the user, and provides support for
|
|
485 |
customized rendering through the use of delegates.
|
|
486 |
|
|
487 |
\list
|
|
488 |
\o \l{itemviews/addressbook}{Address Book}\raisedaster
|
|
489 |
\o \l{itemviews/basicsortfiltermodel}{Basic Sort/Filter Model}
|
|
490 |
\o \l{itemviews/chart}{Chart}
|
|
491 |
\o \l{itemviews/coloreditorfactory}{Color Editor Factory}\raisedaster
|
|
492 |
\o \l{itemviews/combowidgetmapper}{Combo Widget Mapper}\raisedaster
|
|
493 |
\o \l{itemviews/customsortfiltermodel}{Custom Sort/Filter Model}\raisedaster
|
|
494 |
\o \l{itemviews/dirview}{Dir View}
|
|
495 |
\o \l{itemviews/editabletreemodel}{Editable Tree Model}\raisedaster
|
|
496 |
\o \l{itemviews/fetchmore}{Fetch More}\raisedaster
|
|
497 |
\o \l{itemviews/frozencolumn}{Frozen Column}\raisedaster
|
|
498 |
\o \l{itemviews/pixelator}{Pixelator}\raisedaster
|
|
499 |
\o \l{itemviews/puzzle}{Puzzle}
|
|
500 |
\o \l{itemviews/simpledommodel}{Simple DOM Model}\raisedaster
|
|
501 |
\o \l{itemviews/simpletreemodel}{Simple Tree Model}\raisedaster
|
|
502 |
\o \l{itemviews/simplewidgetmapper}{Simple Widget Mapper}\raisedaster
|
|
503 |
\o \l{itemviews/spinboxdelegate}{Spin Box Delegate}\raisedaster
|
|
504 |
\o \l{itemviews/stardelegate}{Star Delegate}\raisedaster
|
|
505 |
\endlist
|
|
506 |
*/
|
|
507 |
|
|
508 |
/*!
|
|
509 |
\page examples-graphicsview.html
|
|
510 |
\title Graphics View Examples
|
|
511 |
|
|
512 |
\previouspage Item Views Examples
|
|
513 |
\contentspage Qt Examples
|
|
514 |
\nextpage Painting Examples
|
|
515 |
|
|
516 |
\image graphicsview-examples.png
|
|
517 |
|
|
518 |
Qt is provided with a comprehensive canvas through the GraphicsView
|
|
519 |
classes.
|
|
520 |
|
|
521 |
These examples demonstrate the fundamental aspects of canvas programming
|
|
522 |
with Qt.
|
|
523 |
|
|
524 |
\list
|
|
525 |
\o \l{graphicsview/collidingmice}{Colliding Mice}\raisedaster
|
|
526 |
\o \l{graphicsview/diagramscene}{Diagram Scene}\raisedaster
|
|
527 |
\o \l{graphicsview/dragdroprobot}{Drag and Drop Robot}
|
|
528 |
\o \l{graphicsview/elasticnodes}{Elastic Nodes}
|
|
529 |
\o \l{graphicsview/portedasteroids}{Ported Asteroids}
|
|
530 |
\o \l{graphicsview/portedcanvas}{Ported Canvas}
|
|
531 |
\endlist
|
|
532 |
*/
|
|
533 |
|
|
534 |
/*!
|
|
535 |
\page examples-painting.html
|
|
536 |
\title Painting Examples
|
|
537 |
|
|
538 |
\previouspage Graphics View Examples
|
|
539 |
\contentspage Qt Examples
|
|
540 |
\nextpage Rich Text Examples
|
|
541 |
|
|
542 |
\image painting-examples.png
|
|
543 |
|
|
544 |
Qt's painting system is able to render vector graphics, images, and outline
|
|
545 |
font-based text with sub-pixel accuracy accuracy using anti-aliasing to
|
|
546 |
improve rendering quality.
|
|
547 |
|
|
548 |
These examples show the most common techniques that are used when painting
|
|
549 |
with Qt, from basic concepts such as drawing simple primitives to the use of
|
|
550 |
transformations.
|
|
551 |
|
|
552 |
\list
|
|
553 |
\o \l{painting/basicdrawing}{Basic Drawing}\raisedaster
|
|
554 |
\o \l{painting/concentriccircles}{Concentric Circles}\raisedaster
|
|
555 |
\o \l{painting/fontsampler}{Font Sampler}
|
|
556 |
\o \l{painting/imagecomposition}{Image Composition}\raisedaster
|
|
557 |
\o \l{painting/painterpaths}{Painter Paths}\raisedaster
|
|
558 |
\o \l{painting/svggenerator}{SVG Generator}\raisedaster
|
|
559 |
\o \l{painting/svgviewer}{SVG Viewer}
|
|
560 |
\o \l{painting/transformations}{Transformations}\raisedaster
|
|
561 |
\endlist
|
|
562 |
*/
|
|
563 |
|
|
564 |
/*!
|
|
565 |
\page examples-richtext.html
|
|
566 |
\title Rich Text Examples
|
|
567 |
|
|
568 |
\previouspage Painting Examples
|
|
569 |
\contentspage Qt Examples
|
|
570 |
\nextpage Desktop Examples
|
|
571 |
|
|
572 |
\image richtext-examples.png
|
|
573 |
|
|
574 |
Qt provides powerful document-oriented rich text engine that supports Unicode
|
|
575 |
and right-to-left scripts. Documents can be manipulated using a cursor-based
|
|
576 |
API, and their contents can be imported and exported as both HTML and in a
|
|
577 |
custom XML format.
|
|
578 |
|
|
579 |
\list
|
|
580 |
\o \l{richtext/calendar}{Calendar}\raisedaster
|
|
581 |
\o \l{richtext/orderform}{Order Form}\raisedaster
|
|
582 |
\o \l{richtext/syntaxhighlighter}{Syntax Highlighter}\raisedaster
|
|
583 |
\o \l{richtext/textobject}{Text Object}\raisedaster
|
|
584 |
\endlist
|
|
585 |
*/
|
|
586 |
|
|
587 |
/*!
|
|
588 |
\page examples-desktop.html
|
|
589 |
\title Desktop Examples
|
|
590 |
|
|
591 |
\previouspage Rich Text Examples
|
|
592 |
\contentspage Qt Examples
|
|
593 |
\nextpage Drag and Drop Examples
|
|
594 |
|
|
595 |
\image desktop-examples.png
|
|
596 |
|
|
597 |
Qt provides features to enable applications to integrate with the user's
|
|
598 |
preferred desktop environment.
|
|
599 |
|
|
600 |
Features such as system tray icons, access to the desktop widget, and
|
|
601 |
support for desktop services can be used to improve the appearance of
|
|
602 |
applications and take advantage of underlying desktop facilities.
|
|
603 |
|
|
604 |
\list
|
|
605 |
\o \l{desktop/screenshot}{Screenshot}\raisedaster
|
|
606 |
\o \l{desktop/systray}{System Tray}\raisedaster
|
|
607 |
\endlist
|
|
608 |
*/
|
|
609 |
|
|
610 |
/*!
|
|
611 |
\page examples-draganddrop.html
|
|
612 |
\title Drag and Drop Examples
|
|
613 |
|
|
614 |
\previouspage Desktop Examples
|
|
615 |
\contentspage Qt Examples
|
|
616 |
\nextpage Threading and Concurrent Programming Examples
|
|
617 |
|
|
618 |
\image draganddrop-examples.png
|
|
619 |
|
|
620 |
Qt supports native drag and drop on all platforms via an extensible
|
|
621 |
MIME-based system that enables applications to send data to each other in the
|
|
622 |
most appropriate formats.
|
|
623 |
|
|
624 |
Drag and drop can also be implemented for internal use by applications.
|
|
625 |
|
|
626 |
\list
|
|
627 |
\o \l{draganddrop/delayedencoding}{Delayed Encoding}\raisedaster
|
|
628 |
\o \l{draganddrop/draggableicons}{Draggable Icons}
|
|
629 |
\o \l{draganddrop/draggabletext}{Draggable Text}
|
|
630 |
\o \l{draganddrop/dropsite}{Drop Site}
|
|
631 |
\o \l{draganddrop/fridgemagnets}{Fridge Magnets}\raisedaster
|
|
632 |
\o \l{draganddrop/puzzle}{Drag and Drop Puzzle}
|
|
633 |
\endlist
|
|
634 |
*/
|
|
635 |
|
|
636 |
/*!
|
|
637 |
\page examples-threadandconcurrent.html
|
|
638 |
\title Threading and Concurrent Programming Examples
|
|
639 |
|
|
640 |
\previouspage Drag and Drop Examples
|
|
641 |
\contentspage Qt Examples
|
|
642 |
\nextpage Tools Examples
|
|
643 |
|
|
644 |
\image thread-examples.png
|
|
645 |
|
|
646 |
Qt 4 makes it easier than ever to write multithreaded applications. More
|
|
647 |
classes have been made usable from non-GUI threads, and the signals and slots
|
|
648 |
mechanism can now be used to communicate between threads.
|
|
649 |
|
|
650 |
Additionally, it is now possible to move objects between threads.
|
|
651 |
|
|
652 |
\list
|
|
653 |
\o \l{threads/queuedcustomtype}{Queued Custom Type}\raisedaster
|
|
654 |
\o \l{threads/mandelbrot}{Mandelbrot}\raisedaster
|
|
655 |
\o \l{threads/semaphores}{Semaphores}\raisedaster
|
|
656 |
\o \l{threads/waitconditions}{Wait Conditions}\raisedaster
|
|
657 |
\endlist
|
|
658 |
|
|
659 |
The QtConcurrent namespace includes a collection of classes and functions
|
|
660 |
for straightforward concurrent programming.
|
|
661 |
|
|
662 |
These examples show how to apply the basic techniques of concurrent
|
|
663 |
programming to simple problems.
|
|
664 |
|
|
665 |
\list
|
|
666 |
\o \l{qtconcurrent/imagescaling}{QtConcurrent Asynchronous Image Scaling}
|
|
667 |
\o \l{qtconcurrent/map}{QtConcurrent Map}
|
|
668 |
\o \l{qtconcurrent/progressdialog}{QtConcurrent Progress Dialog}
|
|
669 |
\o \l{qtconcurrent/runfunction}{QtConcurrent Run Function}
|
|
670 |
\o \l{qtconcurrent/wordcount}{QtConcurrent Word Count}
|
|
671 |
\endlist
|
|
672 |
*/
|
|
673 |
|
|
674 |
/*!
|
|
675 |
\page examples.tools.html
|
|
676 |
\title Tools Examples
|
|
677 |
|
|
678 |
\previouspage Threading and Concurrent Programming Examples
|
|
679 |
\contentspage Qt Examples
|
|
680 |
\nextpage Network Examples
|
|
681 |
|
|
682 |
\image tool-examples.png
|
|
683 |
|
|
684 |
Qt is equipped with a range of capable tool classes, from containers and
|
|
685 |
iterators to classes for string handling and manipulation.
|
|
686 |
|
|
687 |
Other classes provide application infrastructure support, handling plugin
|
|
688 |
loading and managing configuration files.
|
|
689 |
|
|
690 |
\list
|
|
691 |
\o \l{tools/codecs}{Codecs}
|
|
692 |
\o \l{tools/completer}{Completer}\raisedaster
|
|
693 |
\o \l{tools/customcompleter}{Custom Completer}\raisedaster
|
|
694 |
\o \l{tools/customtype}{Custom Type}\raisedaster
|
|
695 |
\o \l{tools/customtypesending}{Custom Type Sending}\raisedaster
|
|
696 |
\o \l{tools/echoplugin}{Echo Plugin}\raisedaster
|
|
697 |
\o \l{tools/i18n}{I18N}
|
|
698 |
\o \l{tools/plugandpaint}{Plug & Paint}\raisedaster
|
|
699 |
\o Plug & Paint Plugins: \l{tools/plugandpaintplugins/basictools}{Basic Tools}\raisedaster
|
|
700 |
and \l{tools/plugandpaintplugins/extrafilters}{Extra Filters}\raisedaster
|
|
701 |
\o \l{tools/regexp}{RegExp}
|
|
702 |
\o \l{tools/settingseditor}{Settings Editor}
|
|
703 |
\o \l{tools/styleplugin}{Style Plugin}\raisedaster
|
|
704 |
\o \l{tools/treemodelcompleter}{Tree Model Completer}\raisedaster
|
|
705 |
\o \l{tools/undoframework}{Undo Framework}\raisedaster
|
|
706 |
\endlist
|
|
707 |
*/
|
|
708 |
|
|
709 |
/*!
|
|
710 |
\page examples-network.html
|
|
711 |
\title Network Examples
|
|
712 |
|
|
713 |
\previouspage Tools Examples
|
|
714 |
\contentspage Qt Examples
|
|
715 |
\nextpage Inter-Process Communication Examples
|
|
716 |
|
|
717 |
\image network-examples.png
|
|
718 |
|
|
719 |
Qt is provided with an extensive set of network classes to support both
|
|
720 |
client-based and server side network programming.
|
|
721 |
|
|
722 |
These examples demonstrate the fundamental aspects of network programming
|
|
723 |
with Qt.
|
|
724 |
|
|
725 |
\list
|
|
726 |
\o \l{network/blockingfortuneclient}{Blocking Fortune Client}\raisedaster
|
|
727 |
\o \l{network/broadcastreceiver}{Broadcast Receiver}
|
|
728 |
\o \l{network/broadcastsender}{Broadcast Sender}
|
|
729 |
\o \l{network/network-chat}{Network Chat}
|
|
730 |
\o \l{network/fortuneclient}{Fortune Client}\raisedaster
|
|
731 |
\o \l{network/fortuneserver}{Fortune Server}\raisedaster
|
|
732 |
\o \l{network/ftp}{FTP}\raisedaster
|
|
733 |
\o \l{network/http}{HTTP}
|
|
734 |
\o \l{network/loopback}{Loopback}
|
|
735 |
\o \l{network/threadedfortuneserver}{Threaded Fortune Server}\raisedaster
|
|
736 |
\o \l{network/torrent}{Torrent}
|
|
737 |
\o \l{network/googlesuggest}{Google Suggest}
|
|
738 |
\endlist
|
|
739 |
*/
|
|
740 |
|
|
741 |
/*!
|
|
742 |
\page examples-ipc.html
|
|
743 |
\title Inter-Process Communication Examples
|
|
744 |
|
|
745 |
\previouspage Network Examples
|
|
746 |
\contentspage Qt Examples
|
|
747 |
\nextpage OpenGL Examples
|
|
748 |
|
|
749 |
\image ipc-examples.png
|
|
750 |
|
|
751 |
\list
|
|
752 |
\o \l{ipc/localfortuneclient}{Local Fortune Client}\raisedaster
|
|
753 |
\o \l{ipc/localfortuneserver}{Local Fortune Server}\raisedaster
|
|
754 |
\o \l{ipc/sharedmemory}{Shared Memory}\raisedaster
|
|
755 |
\endlist
|
|
756 |
*/
|
|
757 |
|
|
758 |
/*!
|
|
759 |
\page examples-opengl.html
|
|
760 |
\title OpenGL Examples
|
|
761 |
|
|
762 |
\previouspage Inter-Process Communication Examples
|
|
763 |
\contentspage Qt Examples
|
|
764 |
\nextpage Multimedia Examples
|
|
765 |
|
|
766 |
\image opengl-examples.png
|
|
767 |
|
|
768 |
Qt provides support for integration with OpenGL implementations on all
|
|
769 |
platforms, giving developers the opportunity to display hardware accelerated
|
|
770 |
3D graphics alongside a more conventional user interface.
|
|
771 |
|
|
772 |
These examples demonstrate the basic techniques used to take advantage of
|
|
773 |
OpenGL in Qt applications.
|
|
774 |
|
|
775 |
\list
|
|
776 |
\o \l{opengl/2dpainting}{2D Painting}\raisedaster
|
|
777 |
\o \l{opengl/framebufferobject}{Framebuffer Object}
|
|
778 |
\o \l{opengl/framebufferobject2}{Framebuffer Object 2}
|
|
779 |
\o \l{opengl/grabber}{Grabber}
|
|
780 |
\o \l{opengl/hellogl}{Hello GL}\raisedaster
|
|
781 |
\o \l{opengl/overpainting}{Overpainting}\raisedaster
|
|
782 |
\o \l{opengl/pbuffers}{Pixel Buffers}
|
|
783 |
\o \l{opengl/pbuffers2}{Pixel Buffers 2}
|
|
784 |
\o \l{opengl/samplebuffers}{Sample Buffers}
|
|
785 |
\o \l{opengl/textures}{Textures}
|
|
786 |
\endlist
|
|
787 |
*/
|
|
788 |
|
|
789 |
/*!
|
|
790 |
\page examples-multimedia.html
|
|
791 |
\title Multimedia Examples
|
|
792 |
|
|
793 |
\previouspage OpenGL Examples
|
|
794 |
\contentspage Qt Examples
|
|
795 |
\nextpage SQL Examples
|
|
796 |
|
|
797 |
\image phonon-examples.png
|
|
798 |
|
|
799 |
\section1 Multimedia
|
|
800 |
|
|
801 |
Qt provides low-level audio support on linux,windows and mac platforms by default and
|
|
802 |
an audio plugin API to allow developers to implement there own audio support for
|
|
803 |
custom devices and platforms.
|
|
804 |
|
|
805 |
These examples demonstrate the basic techniques used to take advantage of
|
|
806 |
Audio API in Qt applications.
|
|
807 |
|
|
808 |
\list
|
|
809 |
\o \l{multimedia/audiodevices}{Audio Devices}
|
|
810 |
\o \l{multimedia/audiooutput}{Audio Output}
|
|
811 |
\o \l{multimedia/audioinput}{Audio Input}
|
|
812 |
\endlist
|
|
813 |
|
|
814 |
\section1 Video Output
|
|
815 |
|
|
816 |
\list
|
|
817 |
\o \l{multimedia/videowidget}{Video Widget}\raisedaster
|
|
818 |
\o \l{multimedia/videographicsitem}{Video Graphics Item}
|
|
819 |
\endlist
|
|
820 |
|
|
821 |
\section1 Phonon
|
|
822 |
|
|
823 |
The Phonon Multimedia Framework brings multimedia support to Qt applications.
|
|
824 |
|
|
825 |
The examples and demonstrations provided show how to play music and movies
|
|
826 |
using the Phonon API.
|
|
827 |
|
|
828 |
\list
|
|
829 |
\o \l{phonon/capabilities}{Capabilities}\raisedaster
|
|
830 |
\o \l{phonon/qmusicplayer}{Music Player}\raisedaster
|
|
831 |
\endlist
|
|
832 |
*/
|
|
833 |
|
|
834 |
/*!
|
|
835 |
\page examples-sql.html
|
|
836 |
\title SQL Examples
|
|
837 |
|
|
838 |
\previouspage Multimedia Examples
|
|
839 |
\contentspage Qt Examples
|
|
840 |
\nextpage XML Examples
|
|
841 |
|
|
842 |
\image sql-examples.png
|
|
843 |
|
|
844 |
Qt provides extensive database interoperability, with support for products
|
|
845 |
from both open source and proprietary vendors.
|
|
846 |
|
|
847 |
SQL support is integrated with Qt's model/view architecture, making it easier
|
|
848 |
to provide GUI integration for your database applications.
|
|
849 |
|
|
850 |
\list
|
|
851 |
\o \l{sql/cachedtable}{Cached Table}\raisedaster
|
|
852 |
\o \l{sql/drilldown}{Drill Down}\raisedaster
|
|
853 |
\o \l{sql/querymodel}{Query Model}
|
|
854 |
\o \l{sql/relationaltablemodel}{Relational Table Model}
|
|
855 |
\o \l{sql/tablemodel}{Table Model}
|
|
856 |
\o \l{sql/sqlwidgetmapper}{SQL Widget Mapper}\raisedaster
|
|
857 |
\endlist
|
|
858 |
*/
|
|
859 |
|
|
860 |
|
|
861 |
/*!
|
|
862 |
\page examples-xml.html
|
|
863 |
\title XML Examples
|
|
864 |
|
|
865 |
\previouspage SQL Examples
|
|
866 |
\contentspage Qt Examples
|
|
867 |
\nextpage Qt Designer Examples
|
|
868 |
|
|
869 |
\image xml-examples.png XML
|
|
870 |
|
|
871 |
XML parsing and handling is supported through SAX and DOM compliant APIs
|
|
872 |
as well as streaming classes.
|
|
873 |
|
|
874 |
\list
|
|
875 |
\o \l{xml/dombookmarks}{DOM Bookmarks}
|
|
876 |
\o \l{xml/saxbookmarks}{SAX Bookmarks}
|
|
877 |
\o \l{xml/streambookmarks}{QXmlStream Bookmarks}\raisedaster
|
|
878 |
\o \l{xml/rsslisting}{RSS-Listing}
|
|
879 |
\o \l{xml/xmlstreamlint}{XML Stream Lint Example}\raisedaster
|
|
880 |
\endlist
|
|
881 |
|
|
882 |
The XQuery/XPath and XML Schema engines in the QtXmlPatterns modules
|
|
883 |
provide classes for querying XML files and custom data models.
|
|
884 |
|
|
885 |
\list
|
|
886 |
\o \l{xmlpatterns/recipes}{Recipes}
|
|
887 |
\o \l{xmlpatterns/filetree}{File System Example}
|
|
888 |
\o \l{xmlpatterns/qobjectxmlmodel}{QObject XML Model Example}
|
|
889 |
\o \l{xmlpatterns/xquery/globalVariables}{C++ Source Code Analyzer Example}
|
|
890 |
\o \l{xmlpatterns/trafficinfo}{Traffic Info}\raisedaster
|
|
891 |
\o \l{xmlpatterns/schema}{XML Schema Validation}\raisedaster
|
|
892 |
\endlist
|
|
893 |
*/
|
|
894 |
|
|
895 |
/*!
|
|
896 |
\page examples-designer.html
|
|
897 |
\title Qt Designer Examples
|
|
898 |
|
|
899 |
\previouspage XML Examples
|
|
900 |
\contentspage Qt Examples
|
|
901 |
\nextpage UiTools Examples
|
|
902 |
|
|
903 |
\image designer-examples.png QtDesigner
|
|
904 |
|
|
905 |
Qt Designer is a capable graphical user interface designer that lets you
|
|
906 |
create and configure forms without writing code. GUIs created with
|
|
907 |
Qt Designer can be compiled into an application or created at run-time.
|
|
908 |
|
|
909 |
\list
|
|
910 |
\o \l{designer/calculatorbuilder}{Calculator Builder}\raisedaster
|
|
911 |
\o \l{designer/calculatorform}{Calculator Form}\raisedaster
|
|
912 |
\o \l{designer/customwidgetplugin}{Custom Widget Plugin}\raisedaster
|
|
913 |
\o \l{designer/taskmenuextension}{Task Menu Extension}\raisedaster
|
|
914 |
\o \l{designer/containerextension}{Container Extension}\raisedaster
|
|
915 |
\o \l{designer/worldtimeclockbuilder}{World Time Clock Builder}\raisedaster
|
|
916 |
\o \l{designer/worldtimeclockplugin}{World Time Clock Plugin}\raisedaster
|
|
917 |
\endlist
|
|
918 |
*/
|
|
919 |
|
|
920 |
/*!
|
|
921 |
\page examples-uitools.html
|
|
922 |
\title UiTools Examples
|
|
923 |
|
|
924 |
\previouspage Qt Designer Examples
|
|
925 |
\contentspage Qt Examples
|
|
926 |
\nextpage Qt Linguist Examples
|
|
927 |
|
|
928 |
\image uitools-examples.png UiTools
|
|
929 |
|
|
930 |
\list
|
|
931 |
\o \l{uitools/multipleinheritance}{Multiple Inheritance}\raisedaster
|
|
932 |
\o \l{uitools/textfinder}{Text Finder}\raisedaster
|
|
933 |
\endlist
|
|
934 |
*/
|
|
935 |
|
|
936 |
/*!
|
|
937 |
\page examples-linguist.html
|
|
938 |
\title Qt Linguist Examples
|
|
939 |
|
|
940 |
\previouspage UiTools Examples
|
|
941 |
\contentspage Qt Examples
|
|
942 |
\nextpage Qt Script Examples
|
|
943 |
|
|
944 |
\image linguist-examples.png
|
|
945 |
|
|
946 |
Internationalization is a core feature of Qt. These examples show how to
|
|
947 |
access translation and localization facilities at run-time.
|
|
948 |
|
|
949 |
\list
|
|
950 |
\o \l{linguist/hellotr}{Hello tr()}\raisedaster
|
|
951 |
\o \l{linguist/arrowpad}{Arrow Pad}\raisedaster
|
|
952 |
\o \l{linguist/trollprint}{Troll Print}\raisedaster
|
|
953 |
\endlist
|
|
954 |
*/
|
|
955 |
|
|
956 |
/*!
|
|
957 |
\page examples-script.html
|
|
958 |
\title Qt Script Examples
|
|
959 |
|
|
960 |
\previouspage Qt Linguist Examples
|
|
961 |
\contentspage Qt Examples
|
|
962 |
\nextpage WebKit Examples
|
|
963 |
|
|
964 |
\image qtscript-examples.png QtScript
|
|
965 |
|
|
966 |
Qt is provided with a powerful embedded scripting environment through the QtScript
|
|
967 |
classes.
|
|
968 |
|
|
969 |
These examples demonstrate the fundamental aspects of scripting applications
|
|
970 |
with Qt.
|
|
971 |
|
|
972 |
\list
|
|
973 |
\o \l{script/calculator}{Calculator}\raisedaster
|
|
974 |
\o \l{script/context2d}{Context2D}\raisedaster
|
|
975 |
\o \l{script/defaultprototypes}{Default Prototypes}\raisedaster
|
|
976 |
\o \l{script/helloscript}{Hello Script}\raisedaster
|
|
977 |
\o \l{script/qstetrix}{Qt Script Tetrix}\raisedaster
|
|
978 |
\o \l{script/customclass}{Custom Script Class}\raisedaster
|
|
979 |
\endlist
|
|
980 |
*/
|
|
981 |
|
|
982 |
/*!
|
|
983 |
\page examples-webkit.html
|
|
984 |
\title WebKit Examples
|
|
985 |
|
|
986 |
\previouspage Qt Script Examples
|
|
987 |
\contentspage Qt Examples
|
|
988 |
\nextpage Help System Examples
|
|
989 |
|
|
990 |
\image webkit-examples.png WebKit
|
|
991 |
|
|
992 |
Qt provides an integrated Web browser component based on WebKit, the popular
|
|
993 |
open source browser engine.
|
|
994 |
|
|
995 |
These examples and demonstrations show a range of different uses for WebKit,
|
|
996 |
from displaying Web pages within a Qt user interface to an implementation of
|
|
997 |
a basic function Web browser.
|
|
998 |
|
|
999 |
\list
|
|
1000 |
\o \l{webkit/previewer}{Previewer}\raisedaster
|
|
1001 |
\o \l{webkit/formextractor}{Form Extractor}
|
|
1002 |
\o \l{webkit/googlechat}{Google Chat}
|
|
1003 |
\o \l{webkit/fancybrowser}{Fancy Browser}
|
|
1004 |
\endlist
|
|
1005 |
*/
|
|
1006 |
|
|
1007 |
/*!
|
|
1008 |
\page examples-helpsystem.html
|
|
1009 |
\title Help System Examples
|
|
1010 |
|
|
1011 |
\previouspage WebKit Examples
|
|
1012 |
\contentspage Qt Examples
|
|
1013 |
\nextpage State Machine Examples
|
|
1014 |
|
|
1015 |
\image assistant-examples.png HelpSystem
|
|
1016 |
|
|
1017 |
Support for interactive help is provided by the Qt Assistant application.
|
|
1018 |
Developers can take advantages of the facilities it offers to display
|
|
1019 |
specially-prepared documentation to users of their applications.
|
|
1020 |
|
|
1021 |
\list
|
|
1022 |
\o \l{help/simpletextviewer}{Simple Text Viewer}\raisedaster
|
|
1023 |
\endlist
|
|
1024 |
*/
|
|
1025 |
|
|
1026 |
/*!
|
|
1027 |
\page examples-statemachine.html
|
|
1028 |
\title State Machine Examples
|
|
1029 |
|
|
1030 |
\previouspage Help System Examples
|
|
1031 |
\contentspage Qt Examples
|
|
1032 |
\nextpage Animation Framework Examples
|
|
1033 |
|
|
1034 |
\image statemachine-examples.png StateMachine
|
|
1035 |
|
|
1036 |
Qt provides a powerful hierarchical finite state machine through the Qt State
|
|
1037 |
Machine classes.
|
|
1038 |
|
|
1039 |
These examples demonstrate the fundamental aspects of implementing
|
|
1040 |
Statecharts with Qt.
|
|
1041 |
|
|
1042 |
\list
|
|
1043 |
\o \l{statemachine/eventtransitions}{Event Transitions}\raisedaster
|
|
1044 |
\o \l{statemachine/factorial}{Factorial States}\raisedaster
|
|
1045 |
\o \l{statemachine/pingpong}{Ping Pong States}\raisedaster
|
|
1046 |
\o \l{statemachine/rogue}{Rogue}\raisedaster
|
|
1047 |
\o \l{statemachine/trafficlight}{Traffic Light}\raisedaster
|
|
1048 |
\o \l{statemachine/twowaybutton}{Two-way Button}\raisedaster
|
|
1049 |
\endlist
|
|
1050 |
*/
|
|
1051 |
|
|
1052 |
/*!
|
|
1053 |
\page examples-animation.html
|
|
1054 |
\title Animation Framework Examples
|
|
1055 |
|
|
1056 |
\previouspage State Machine Examples
|
|
1057 |
\contentspage Qt Examples
|
|
1058 |
\nextpage Gestures Examples
|
|
1059 |
|
|
1060 |
\image animation-examples.png Animation
|
|
1061 |
|
|
1062 |
\list
|
|
1063 |
\o \l{animation/animatedtiles}{Animated Tiles}
|
|
1064 |
\o \l{animation/appchooser}{Application Chooser}
|
|
1065 |
\o \l{animation/easing}{Easing Curves}
|
|
1066 |
\o \l{animation/moveblocks}{Move Blocks}\raisedaster
|
|
1067 |
\o \l{animation/states}{States}
|
|
1068 |
\o \l{animation/stickman}{Stick man}\raisedaster
|
|
1069 |
\endlist
|
|
1070 |
*/
|
|
1071 |
|
|
1072 |
/*!
|
|
1073 |
\page examples-gestures.html
|
|
1074 |
\title Gestures Examples
|
|
1075 |
|
|
1076 |
\previouspage Animation Framework Examples
|
|
1077 |
\contentspage Qt Examples
|
|
1078 |
\nextpage D-Bus Examples
|
|
1079 |
|
|
1080 |
The API of the gesture framework is not yet finalized and
|
|
1081 |
still subject to change.
|
|
1082 |
|
|
1083 |
\list
|
|
1084 |
\o \l{gestures/imagegestures}{Image Gestures}
|
|
1085 |
\endlist
|
|
1086 |
*/
|
|
1087 |
|
|
1088 |
/*!
|
|
1089 |
\page examples-dbus.html
|
|
1090 |
\title D-Bus Examples
|
|
1091 |
|
|
1092 |
\previouspage Gestures Examples
|
|
1093 |
\contentspage Qt Examples
|
|
1094 |
\nextpage Qt for Embedded Linux Examples
|
|
1095 |
|
|
1096 |
\list
|
|
1097 |
\o \l{dbus/dbus-chat}{Chat}
|
|
1098 |
\o \l{dbus/complexpingpong}{Complex Ping Pong}
|
|
1099 |
\o \l{dbus/listnames}{List Names}
|
|
1100 |
\o \l{dbus/pingpong}{Ping Pong}
|
|
1101 |
\o \l{dbus/remotecontrolledcar}{Remote Controlled Car}
|
|
1102 |
\endlist
|
|
1103 |
*/
|
|
1104 |
|
|
1105 |
/*!
|
|
1106 |
\page examples-embeddedlinux.html
|
|
1107 |
\title Qt for Embedded Linux Examples
|
|
1108 |
|
|
1109 |
\previouspage D-Bus Examples
|
|
1110 |
\contentspage Qt Examples
|
|
1111 |
\nextpage ActiveQt Examples
|
|
1112 |
|
|
1113 |
\image qt-embedded-examples.png QtEmbedded
|
|
1114 |
|
|
1115 |
These examples show how to take advantage of features specifically designed
|
|
1116 |
for use on systems with limited resources, specialized hardware, and small
|
|
1117 |
screens.
|
|
1118 |
|
|
1119 |
\list
|
|
1120 |
\o \l{qws/svgalib}{Accelerated Graphics Driver}\raisedaster
|
|
1121 |
\o \l{qws/dbscreen}{Double Buffered Graphics Driver}\raisedaster
|
|
1122 |
\o \l{qws/mousecalibration}{Mouse Calibration}\raisedaster
|
|
1123 |
\o \l{qws/simpledecoration}{Simple Decoration}\raisedaster
|
|
1124 |
\endlist
|
|
1125 |
*/
|
|
1126 |
|
|
1127 |
/*!
|
|
1128 |
\page examples-activeqt.html
|
|
1129 |
\title ActiveQt Examples
|
|
1130 |
|
|
1131 |
\previouspage Qt for Embedded Linux Examples
|
|
1132 |
\contentspage Qt Examples
|
|
1133 |
\nextpage Qt Quarterly
|
|
1134 |
|
|
1135 |
\image activeqt-examples.png ActiveQt
|
|
1136 |
|
|
1137 |
\list
|
|
1138 |
\o \l{activeqt/comapp}{COM App}\raisedaster
|
|
1139 |
\o \l{Dot Net Example (ActiveQt)}{Dot Net}\raisedaster
|
|
1140 |
\o \l{activeqt/hierarchy}{Hierarchy}\raisedaster
|
|
1141 |
\o \l{activeqt/menus}{Menus}\raisedaster
|
|
1142 |
\o \l{activeqt/multiple}{Multiple}\raisedaster
|
|
1143 |
\o \l{activeqt/opengl}{OpenGL}\raisedaster
|
|
1144 |
\o \l{activeqt/qutlook}{Qutlook}\raisedaster
|
|
1145 |
\o \l{activeqt/simple}{Simple}\raisedaster
|
|
1146 |
\o \l{activeqt/webbrowser}{Web Browser}\raisedaster
|
|
1147 |
\o \l{activeqt/wrapper}{Wrapper}\raisedaster
|
|
1148 |
\endlist
|
|
1149 |
*/
|