You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Signed-off-by: Michele Calgaro <email@example.com>
|2 weeks ago|
|aclock||11 years ago|
|action||8 years ago|
|addressbook||11 years ago|
|application||8 years ago|
|biff||11 years ago|
|buttongroups||11 years ago|
|canvas||4 years ago|
|chart||2 years ago|
|checklists||11 years ago|
|cursor||11 years ago|
|customlayout||11 years ago|
|dclock||11 years ago|
|demo||2 years ago|
|desktop||3 years ago|
|dirview||11 years ago|
|distributor||8 years ago|
|dragdrop||4 years ago|
|drawdemo||4 years ago|
|drawlines||4 years ago|
|extension||11 years ago|
|fileiconview||11 years ago|
|fonts||11 years ago|
|forever||11 years ago|
|gridview||11 years ago|
|hello||4 years ago|
|helpdemo||2 weeks ago|
|helpsystem||4 years ago|
|helpviewer||4 years ago|
|i18n||6 months ago|
|iconview||11 years ago|
|layout||11 years ago|
|life||11 years ago|
|lineedits||11 years ago|
|listbox||11 years ago|
|listboxcombo||11 years ago|
|listviews||11 years ago|
|mdi||4 years ago|
|menu||11 years ago|
|movies||8 years ago|
|network||2 weeks ago|
|opengl||4 years ago|
|picture||8 years ago|
|popup||11 years ago|
|process||2 weeks ago|
|progress||11 years ago|
|progressbar||11 years ago|
|qdir||11 years ago|
|qfd||11 years ago|
|qmag||11 years ago|
|qtl||11 years ago|
|qwerty||4 years ago|
|rangecontrols||11 years ago|
|regexptester||11 years ago|
|richtext||6 years ago|
|rot13||11 years ago|
|scribble||4 years ago|
|scrollview||11 years ago|
|showimg||4 years ago|
|sound||11 years ago|
|splitter||11 years ago|
|sql||10 years ago|
|tabdialog||11 years ago|
|table||11 years ago|
|tablet||4 years ago|
|tetrix||4 years ago|
|textedit||4 years ago|
|themes||4 years ago|
|thread||4 years ago|
|tictac||11 years ago|
|tooltip||11 years ago|
|toplevel||2 weeks ago|
|tux||6 years ago|
|widgets||4 years ago|
|wizard||11 years ago|
|xform||11 years ago|
|xml||8 years ago|
|README||8 years ago|
|examples.pro||11 years ago|
This examples directory contains lots of TQt examples. And there are
additional examples in ../tools/designer/examples/ and in the
extensions subdirectories. The documentation contains two detailed Qt
tutorials and additional tutorials for TQt Designer. The examples here
are useful for learning particular TQt classes and techniques, but to
learn TQt itself we recommend starting with the documentation's short
"How to Learn Qt" document.
It is best to run each example from its own directory since some of
them assume they are run from there.
This example displays an analog clock widget.
It shows how to create a custom widget (QWidget subclass) and how
to create a timer using QTimer.
A single document interface application example with a menu bar,
tool bar and status bar that provides simple text editing.
It shows how to implement a typical modern application, how to
create a QMainWindow subclass, and how to create actions that can
be assigned to menus (QPopupMenu) and toolbars (QToolBar) using
QAction. It also shows how to print using QSimpleRichText.
application [obsolete; see the action example instead]
Biff is a simple graphical program to indicate whether there is
new mail; it looks like xbiff but is much shorter.
This examples shows different types of group boxes (QButtonGroup,
and QGroupBox), and different kinds of buttons (QCheckBox,
QRadioButton, and QPushButton). It also shows how to add a
QPopupMenu to a button.
This examples demonstrates many of QCanvasView's facilities, but
by no means all of them. It uses QCanvasItem, QCanvasLine,
QCanvasRectangle, QCanvasEllipse, QCanvasSprite, and of course
An application for maintaining simple numeric data and visualising
the data using pie and bar charts.
Tutorial #2 explains this application in detail.
Shows two list views with check box and radio button items. (These
kinds of lists are often used with setup programs.)
Shows the use of QListView, QListViewItem, QCheckListItem,
QListViewItemIterator, and QValueList.
This example shows how to set the mouse cursor for a widget. Shows
Qt's cursors and a custom cursor using QLabel and QCursor.
This examples demonstrates how to write a customized layout
(geometry) manager, like a Card-Layout, Border-Layout and
This example displays a digital LCD clock and can switch between
time and date.
It uses the QLCDNumber widget and a couple of QTimers.
Run this to see almost all of Qt's widgets in action, including
drag and drop, 2D graphics, etc.
The desktop demo contains three routines, each of which draws
something on the desktop. It does some nice stuff with QPainter,
and also demonstrates how one can treat the desktop as a widget
like any other.
Shows the use of QDirectPainter.
This example program demonstrates how to use a QListView and
QListViewItems to build a multi-column hierarchical, memory- and
CPU-efficient directory browser. It also demonstrates how to use
Drag'n'Drop in a QListview. (See also the fileiconview example.)
This is a utility program that can be used to modify the paths
used in the TQt library binary to make the binary suitable for
distribution. For experts only.
Demonstrates image and text drag and drop.
Draws a color wheel, text and shapes. This example demonstrates
several drawing functions and printer output using QPainter,
QWMatrix, QFont, QFontMetrics, QColor, QBrush, and QPrinter. You
can easily add you own drawing functions. See "ourDrawFunctions".
This example shows very simple mouse-based user interaction and
painting without any world transform matrix or other advanced
features. Run the program, click the button, move the mouse,
release the button, and watch the lines get drawn.
An extension dialog with simple and advanced appearances
controlled by a toggle button.
This example partially implements a very basic file manager using
a widget derived from QIconView to display the current directory.
It uses the DirectoryView widget from the dirview example to
display the directory tree.
It also shows how to add a QComboBox to a QToolBar and how to
implement a context menu using QPopupMenu.
fonts [obsolete; see the qfd example instead]
WARNING: this program has a strobe effect.
See how fast TQt can draw colored rectangles. This example
continuously draws rectangles in a window and has another widget
that counts the number of rectangles that are drawn per second.
A QGridView with 100x100 cells.
Hello world with colored animated wavy text.
Shows how to use TQt Assistant as an application's online help
tool. (See also the helpsystem example.)
This example shows how to implement context-sensitive help in
various ways in a TQt application using QToolTip, QWhatsThis, and
QAssistantClient to control TQt Assistant.
The HelpViewer example implements a simple HTML help browser using
Qt's richtext capabilities.
This example shows how to internationalize applications. Start it with
to run the application in English, and with
to run it in German. Other languages are also available including,
Arabic (ar), French (fr), Italian (it), Japanese (jp), Korean
(ko), Norwegian (no), and Russian (ru). Some languages depend on
the availability of suitable fonts.
This example implements a flexible icon view which can store lots
of icon items. It supports Drag'n'Drop and different selection
modes using QIconView.
An MPEG player.
A program launcher.
This example shows simple and intermediate use of Qt's layout
classes, QGridLaout, QBoxLayout etc.
An implementation of the life game with a Unix-flavor GUI.
This example shows how to use various properties of QLineEdit
including echo modes, input masks, and validators.
Shows QListBox options.
This example shows how to use QListBox (with single selection and
multi selection) and QComboBox (editable and non-editable).
This examples shows how to work with QListView (a tree view
Similar to the action example, but this time using MDI (Multiple
Document Interface). It subclasses QMainWindow and uses the
QWorkspace class to provide MDI and shows how to implement an MDI
This example demonstrates the simple use of menus (a menu bar and
pull-down menus), and a context menu. (See also the popup
The Movies example displays animated GIF files using the QMovie
and QLabel classes.
Shows how to use QHttp to request and receive data from a web
Provides a client application and a server application that
communicate using QSocket and QServerSocket.
A simple FTP client that uses QFtp to retrieve directory listings
and to download and upload files.
An extremely simple HTTP daemon built using QServerSocket.
A more complex client/server example.
A simple mail client that can send email using the QSocket class.
A simple implementation of a subset of the NNTP protocol. This
shows how to implement your own network protocols by subclassing
Controlling one application from another using QSocket-based IPC.
Shows how to use OpenGL in TQt using QGLWidget.
Shows how to build OpenGL display lists.
This is based on the box example. It shows how to render an OpenGL
scene into a QPixmap.
Demonstrates the use of OpenGL overlays (where supported).
Demonstrates how to share OpenGL display lists with QGLWidgets.
Shows how to use OpenGL textures.
This example shows how to make, store to file, and read back, a
picture as a set of vector drawing commands.
This examples shows how to implement popup widgets.
Shows how to execute a non-GUI application in a separate process
with I/O redirection.
WARNING: this program has a strobe effect.
This example presents a long-running process (drawing lots of
rectangles) and a QProgressDialog. Two types of progress dialog
are offered, one that simply shows text, and a custom one that
shows an animation using a QLabel and a QTimer.
Shows how to use a QProgressBar.
Shows how to use and customize QFileDialog. Run
for details. Also shows QFileInfo.
This example program displays all the characters of a selected
font. It shows the use of QFontDialog, QFontMetrics and QFontInfo,
and a QTable subclass.
This is a simple magnifier-type program. It shows how one can do
some quite low-level operations portably using Qt.
Simple text editor for testing different character encodings.
This examples shows how to use QSpinBox and QSlider.
This little application is useful for testing regular expressions.
This example shows the use of QTextView (a read/only QTextEdit
A simple implementation of the rot13 algorithm.
An implementation of the well known scribble program. You can draw
with different pen colors and widths and save the result as a
pixmap in various formats. It shows how to do drawing using a
QWidget subclass (rather than a QCanvas for example). It also
shows how to add a QSpinBox to a QToolBar and how to implement a
button that pops up a menu (using QPushButton and QPopupMenu), and
also how to use the QColorDialog.
This example shows one way of using a QScrollview. This widget is
highly optimized for showing very large contents including child
This example reads and displays an image in any supported image
format (GIF, BMP, PPM, XMP, etc.)
Shows how to play sounds from a TQt application (and how to see if
sound is supported) using QSound.
This example shows how to use QSplitter to give the user control
over how much vertical or horizontal space is given to child
Shows how to connect to a database and how to write to and read
BLOB fields (for those databases that support BLOBs).
sql/overview [to be withdrawn]
This is just a series of tiny examples used by the SQL module
A very simple example that shows how to relate a database table to
This example shows how to use a dialog with multiple tabs (pages).
It shows the use of QTabDialog and QFileInfo.
This shows how to create a sparse very large (1M x 1M cells)
QTable by avoiding the use of table items.
A small, simple QTable example that uses QTableItems to show text
and pixmaps, and QComboTableItems and QCheckTableItems to show how
A QTable example that shows how to subclass QTableItem.
This shows how to interact with a tablet device. It will only run
if a compatible tablet is installed.
This is the TQt implementation of the well known game Tetris, but
with an unusual twist, not to mention a comment that's almost a
work of art.
A simple text editor based on QTextEdit.
This examples demonstrates how to draw widgets in different styles
(themes). Example themes looking like wood and metal are
implemented. You can switch between the different styles at
runtime using the menu. Shows how to create a QStyle subclass. Not
for the faint-hearted.
This is an implementation of the Tic-Tac-Toe game.
This example widget demonstrates how to use tool tips for static
and dynamic regions within a widget using a QToolTip subclass.
This program allows you to set all the flags for a widget and then
displays the widget using the flags.
trayicon [work in progress]
Shows how to create a non-rectangular window.
Shows many TQt widgets (See also the demo example).
This example shows how to use QWizard.
Demonstrates how to arbitrarily rotate, shear and scale text and
graphics using QWMatrix.
Shows how to read in an XML file using Qt's DOM classes and
display the data in a list view.
Shows how to read an XML file using Qt's SAX classes.
Shows how to read an XML file using Qt's SAX classes, and displays
the data showing the effects of different feature settings.