|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# Qt Examples

This is the list of examples in Qt's `examples` directory. The examples demonstrate Qt features in small, self-contained programs. They are not all designed to be impressive when you run them, but their source code is carefully written to show good Qt programming practices. You can launch any of these programs from the Examples and Demos Launcher application.

If you are new to Qt, you should probably start by going through the Tutorial before you have a look at the Application example.

In addition to the examples and the tutorial, Qt includes a selection of demos that deliberately show off Qt's features. You might want to look at these as well.

One more valuable source for examples and explanations of Qt features is the archive of the Qt Quarterly.

In the list below, examples marked with an asterisk (*) are fully documented. Eventually, all the examples will be fully documented, but sometimes we include an example before we have time to write about it, because someone might need it right now.

Categories:

- ActiveQt
- Desktop
- Dialogs
- Drag and Drop
- Graphics View
- Item Views
- Layouts
- Main Windows
- Network
- OpenGL
- Painting
- Phonon Multimedia Framework
- Qt Assistant
- Qt Designer
- Qt Linguist
- Qtopia Core
- Qt Script
- Rich Text
- SQL
- Threads
- Tools
- UiTools
- Widgets
- XML
- XML Patterns: XQuery & XPath
- Inter-Process Communication

## ActiveQt

- COM App*
- Dot Net*
- Hierarchy*
- Menus*
- Multiple*
- OpenGL*
- Qutlook*
- Simple*
- Web Browser*
- Wrapper*

## Desktop

- Screenshot*
- System Tray*

## Dialogs

- Class Wizard*
- Config Dialog
- Extension*
- Find Files*
- License Wizard*
- Standard Dialogs
- Tab Dialog*
- Trivial Wizard

## Drag and Drop

- Draggable Icons
- Draggable Text
- Drop Site
- Fridge Magnets*
- Drag and Drop Puzzle

## Graphics View

- Colliding Mice*
- Diagram Scene*
- Drag and Drop Robot
- Elastic Nodes
- Ported Asteroids
- Ported Canvas

## Item Views

- Address Book
- Basic Sort/Filter Model
- Chart
- Color Editor Factory*
- Custom Sort/Filter Model*
- Dir View
- Editable Tree Model*
- Pixelator*
- Puzzle
- Simple DOM Model*
- Simple Tree Model*
- Simple Widget Mapper
- Spin Box Delegate*
- Star Delegate*

## Layouts

- Basic Layouts*
- Border Layout
- Dynamic Layouts
- Flow Layout

## Main Windows

- Application*
- Dock Widgets*
- MDI
- Menus*
- Recent Files
- SDI

## Network

- Blocking Fortune Client*
- Broadcast Receiver
- Broadcast Sender
- Fortune Client*
- Fortune Server*
- FTP
- HTTP
- Loopback
- Threaded Fortune Server*
- Torrent

## OpenGL

- 2D Painting*
- Framebuffer Object
- Framebuffer Object 2
- Grabber
- Hello GL*
- Overpainting*
- Pixel Buffers
- Pixel Buffers 2
- Sample Buffers
- Textures

## Painting

- Basic Drawing*
- Concentric Circles*
- Font Sampler
- Image Composition*
- Painter Paths*
- SVG Viewer
- Transformations*

## Phonon Multimedia Framework

- Capabilities*
- Music Player*

## Qt Assistant

- Simple Text Viewer*

## Qt Designer

- Calculator Builder*
- Calculator Form*
- Custom Widget Plugin*
- Task Menu Extension*
- Container Extension*
- World Time Clock Builder*
- World Time Clock Plugin*

## Qt Linguist

- Hello tr()*
- Arrow Pad*
- Troll Print*

## Qtopia Core

- Mouse Calibration*
- Accelerated Graphics Driver*
- OpenGL for Embedded Systems*

## Qt Script

- Calculator
- Context2D
- Default Prototypes
- Hello Script
- Tetrix
- Custom Script Class

## Rich Text

- Calendar*
- Order Form
- Syntax Highlighter*

## SQL

- Cached Table*
- Drill Down*
- Query Model
- Relational Table Model
- Table Model

## Threads

- Mandelbrot*
- Semaphores*
- Wait Conditions*

## Tools

- Codecs
- Completer*
- Custom Completer*
- Echo Plugin*
- I18N
- Plug & Paint*
- Plug & Paint Plugins: Basic Tools* and Extra Filters*
- RegExp
- Settings Editor
- Style Plugin*
- Tree Model Completer*
- Undo Framework*

## UiTools

- Multiple Inheritance*
- Text Finder*

## Widgets

- Analog Clock*
- Calculator*
- Calendar Widget*
- Character Map*
- Digital Clock*
- Group Box*
- Icons*
- Image Viewer*
- Line Edits*
- Movie
- Scribble*
- Shaped Clock*
- Sliders*
- Spin Boxes*
- Styles*
- Style Sheet*
- Tablet*
- Tetrix*
- Tooltips*
- Wiggly*
- Window Flags*

## XML

- DOM Bookmarks
- SAX Bookmarks
- QXmlStream Bookmarks*
- RSS-Listing
- XML Stream Lint Example*

## XML Patterns: XQuery & XPath

- A C++ source code analyzer in XQuery
- Designer File-to-SVG Converter
- Query the File System

## Inter-Process Communication

- Shared Memory*