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
- COM App*
- Dot Net*
- Hierarchy*
- Menus*
- Multiple*
- OpenGL*
- Qutlook*
- Simple*
- Web Browser*
- Wrapper*
Desktop
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
- Basic Sort/Filter Model
- Chart
- Color Editor Factory*
- Custom Sort/Filter Model*
- Editable Tree Model*
- Dir View
- 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*
Qt Assistant
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
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
- Text Finder*
- Multiple Inheritance*
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*