Qt 5.6 | All Qt Examples

Qt 5.6.3 Reference Documentation

# All Qt Examples

## Enginio Manual

Enginio QML Examples - Image Gallery | This is an example that demonstrates uploading and downloading of files in Enginio
Enginio QML Examples - Social Todos | Social Todos is a todo list application with a social twist, demonstrating the user management and access control features of Enginio
Enginio QML Examples - Todos | Todo example shows the EnginioModel usage in Qt Quick
Enginio QML Examples - Users | Users example introduces user registration, authentication, and browsing
Enginio C++ Examples - Cloud Address Book | Cloud Address Book demonstrates how to use sorting, filtering, and the full text search functionality
Enginio C++ Examples - Image Gallery | This is an example that demonstrates uploading and downloading of files in Enginio
Enginio C++ Examples - Todos | Todo example shows how to use the EnginioModel with Qt Widgets

## Qt 3D

Qt 3D: assimp Example |
Qt 3D: Audio Visualizer Example | Demonstrates combining Qt 3D rendering and Qt Quick 2 elements
Qt 3D: Basic Shapes C++ Example | Shows four basic shapes that Qt 3D offers and sets up a mesh for each of them
Qt 3D: Big Model QML Example |
Qt 3D: Big Scene C++ Example |
Qt 3D: C++ Example |
Qt 3D: Cylinder C++ Example |
Qt 3D: Cylinder QML Example |
Qt 3D: Deferred Renderer C++ Example |
Qt 3D: Deferred Renderer QML Example |
Qt 3D: Dynamic Scene C++ Example |
Qt 3D: Enabled QML Example |
Qt 3D: glTF Assets Example |
Qt 3D: Keyboard Input QML Example |
Qt 3D: Loader QML Example |
Qt 3D: Materials C++ Example |
Qt 3D: Materials QML Example |
Qt 3D: Multi Viewport QML Example |
Qt 3D: Planets QML Example | Demonstrates combining Qt 3D rendering and Qt Quick 2 elements
Qt 3D: Playground QML Example |
Qt 3D: Scene3D QML Example |
Qt 3D: Shadow Map QML Example | A Qt 3D QML application that illustrates how to render a scene in Qt 3D with shadows
Qt 3D: Simple C++ Example |
Qt 3D: Simple QML Example |
Qt 3D: Skybox QML Example |
Qt 3D: Tessellation Modes QML Example |
Qt 3D: Torus QML Example |
Qt 3D: Wave QML Example |
Qt 3D: Wireframe QML Example | A Qt 3D QML application that implements a single-pass wireframe rendering method

## Qt Assistant Manual

Remote Control Example | Using and controlling Qt Assistant as a help viewer
Simple Text Viewer Example | Using Qt Assistant as a customized help viewer for your application

## Qt Bluetooth

Bluetooth Chat Example | An example showing communication through Bluetooth
Bluetooth File Transfer Example | An example showing the use of Bluetooth Object Push Profile (OPP)
Bluetooth Scanner Example | An example showing how to locate Bluetooth devices
Bluetooth QML Chat Example | An example demonstrating communication through Bluetooth QML API
Bluetooth Low Energy Heart Listener Example | An example demonstrating the interaction with a Bluetooth Low Energy Heart Rate device/service. The example demonstrates the use of all Qt Bluetooth Low Energy classes
Bluetooth Low Energy Scanner Example | An application designed to browse the content of Bluetooth Low Energy peripheral devices. The example demonstrates the use of all Qt Bluetooth Low Energy classes
QML Bluetooth Picture Push Example | An example showing the use Bluetooth Object Push Profile (OPP)
Bluetooth QML Ping Pong example | A QML example showing Bluetooth communication
QML Bluetooth Scanner Example | A QML example about locating Bluetooth devices

## Qt Canvas 3D

Framebuffer Example | Render into a framebuffer and use it as a texture
Interaction Example | Interact with an object in canvas using Qt Quick Controls
JSON Models Example | Load and display several JSON models
Qt Quick Item as Texture Example | A simple cube with a Qt Quick item as a texture
Lit and Textured Cube Example | A simple cube with texturing and lighting
Interactive Mobile Phone Example | Demonstrates using Qt Quick item as a texture with three.js
One Qt Example | Demonstrates combining Qt Quick and three.js rendering
Planets Example | Demonstrates combining Qt Quick and three.js rendering

## Qt Concurrent

Image Scaling Example | Demonstrates how to asynchronously scale images
Map Example | Demonstrates how to scale images synchronously
QtConcurrent Progress Dialog Example | Demonstrates how to monitor the progress of the active processes
Run Function Example | Demonstrates how to run standard functions concurrently
QtConcurrent Word Count Example | Demonstrates how to use the map-reduce algorithm

## Qt Core

Local Fortune Client Example | Demonstrates using QLocalSocket for a simple local service client
Local Fortune Server Example | Demonstrates using QLocalServer and QLocalSocket for serving a simple local service
Shared Memory Example | Demonstrates doing inter-process communication using shared memory with the QSharedMemory class
JSON Save Game Example | JSON Save Game example demonstrates how to save and load a small game using QJsonDocument, QJsonObject and QJsonArray
Mandelbrot Example | Mandelbrot example demonstrates multi-thread programming using Qt. It shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop
Queued Custom Type Example | Demonstrates multi-thread programming using Qt
Semaphores Example | Demonstrates multi-thread programming using Qt
Wait Conditions Example | Demonstrates multi-thread programming using Qt
Contiguous Cache Example | Contiguous Cache example shows how to use QContiguousCache to manage memory usage for very large models. In some environments memory is limited and, even when it isn't, users still dislike an application using excessive memory. Using QContiguousCache to manage a list, rather than loading the entire list into memory, allows the application to limit the amount of memory it uses, regardless of the size of the data set it accesses
Custom Type Example | Custom Type example shows how to integrate a custom type into Qt's meta-object system

## Qt D-Bus

D-Bus Chat Example | Demonstrates communication among instances of an application
D-Bus Complex Ping Pong Example | Demonstrates usage of the Qt D-Bus typesystem
D-Bus List Names Example | Shows how to access the D-Bus bus daemon service
D-Bus Ping Pong Example | Demonstrates a simple message system using D-Bus
D-Bus Remote Controlled Car Example | Shows how to use Qt D-Bus to control a car from another application

## Qt Designer Manual

Calculator Builder Example | Creating a user interface from a Qt Designer form at run-time
Calculator Form Example | Using a form created with Qt Designer in an application
Container Extension Example | Creating a custom multi-page plugin for Qt Designer
Custom Widget Plugin Example | Creating a custom widget plugin for Qt Designer
Task Menu Extension Example | Creating a custom widget plugin for Qt Designer and providing custom task menu entries that are associated with the plugin
World Time Clock Builder Example | Creating forms with Qt Designer that contain custom widgets that can be dynamically generated at run-time
World Time Clock Plugin Example | Creating a custom widget plugin for Qt Designer that uses signals and slots

## Qt GUI

Analog Clock Window Example | Analog Clock Window example shows how to draw the contents of a custom window
OpenGL Window Example | This example shows how to create a minimal QWindow based application for the purpose of using OpenGL
Raster Window Example | This example shows how to create a minimal QWindow based application using QPainter for rendering

## Qt Help

Context-Sensitive Help Example | Using the QHelpEngineCore class to implement context-sensitive help for applications

## Qt Labs Controls

Qt Labs Controls - Gallery | A gallery of controls

## Qt Linguist Manual

Arrow Pad Example | Understanding the Qt Linguist contexts concept and using two or more languages
Hello tr() Example | Translating a small Hello World program to Latin
Troll Print Example | Updating translations for later releases

## Qt Location

Map Viewer (QML) | Map Viewer example shows how to display and interact with a map, search for an address, and find driving directions
Minimal Map (QML) | Minimum code to display a map using Qt Quick
Places (QML) | Places example demonstrates how to search for Places and access related content
Places List (QML) | Places List example demonstrates how to search for and display a list of places using a ListView
Places Map (QML) | Places Map example demonstrates how to search for and display a list of places on a map using a MapItemView
Plane Spotter (QML) | example demonstrates the tight integration of location and positioning data types into QML

## Qt Mac Extras

macOS: Embedded QWindow | Demonstrates embedding a QWindow into an view hierarchy of a macOS application
macOS Functions | Demonstrates using functions from the QtMac namespace
macOS: Pasteboard MIME Converter | Demonstrates using QMacPasteboardMime class

## Qt Multimedia

Audio Devices Example | Testing the available audio devices and their configuration
AudioEngine Example | Enabling 3D sound control using the Qt Audio Engine API
Audio Input Example | Recording audio using the QAudioInput class
Audio Output Example | Enabling audio playback using the QAudioOutput class
Audio Recorder Example | Discovering the available devices and supported codecs
QML Camera Example | Camera Example shows how to use the API to capture a still image or video
Declarative Radio Example | Demonstrates using the Radio QML type from Qt Multimedia
Spectrum Example | Analyzing a raw audio stream using the FFTReal library
QML Video Example | Transforming video and camera viewfinder content
QML Video Shader Effects Example | Applying shader effects on video and camera viewfinder content
Camera Example | Camera Example shows how to use the API to capture a still image or video
Media Player Example | Playing audio and video
Video Graphics Item Example | Streaming video on a graphics scene
Video Widget Example | Implementing a video player widget

## Qt NFC

Annotated URL Example | An example showing reading from formatted NFC Data Exchange Format (NDEF) messages
QML CorkBoard Example | A QML example about displaying NFC Data Exchange Format (NDEF) messages
NDEF Editor Example | An example about reading and writing NFC Data Exchange Format (NDEF) messages to NFC Forum Tags
QML Poster Example | A QML example about reading and displaying NFC Data Exchange Format (NDEF) messages

## Qt Network

Blocking Fortune Client Example | Demonstrates how to create a client for a network service
Broadcast Receiver Example | Demonstrates how to receive information broadcasted over a local network
Broadcast Sender Example | Demonstrates how to broadcast information to multiple clients on a local network
Fortune Client Example | Demonstrates how to create a client for a network service
Fortune Server Example | Demonstrates how to create a server for a network service
Google Suggest Example | Obtains the list of search recommendations by the Google search engine
HTTP Example | Demonstrates a simple HTTP client
Loopback Example | Demonstrates the client-server communication on a local host
Multicast Receiver Example | Demonstrates how to receive information sent to a multicast group
Multicast Sender Example | Demonstrates how to send messages to a multicast group
Network Chat Example | Demonstrates a stateful peer-to-peer Chat client
Network Download Example | Demonstrates how to use networking APIs for multiple downloads
Network Download Manager Example | Demonstrates how to use the networking APIs for multiple downloads
Secure Socket Client Example | Demonstrates how to communicate over an encrypted (SSL) connection
Threaded Fortune Server Example | Threaded Fortune Server example shows how to create a server for a simple network service that uses threads to handle requests from different clients. It is intended to be run alongside the Fortune Client example
Torrent Example | Demonstrates complex TCP/IP operations

## Qt OpenGL

2D Painting Example | 2D Painting example shows how QPainter and QGLWidget can be used together to display accelerated 2D graphics on supported hardware
Cube OpenGL ES 2.0 example | Cube OpenGL ES 2.0 example shows how to write mouse rotateable textured 3D cube using OpenGL ES 2.0 with Qt. It shows how to handle polygon geometries efficiently and how to write simple vertex and fragment shader for programmable graphics pipeline. In addition it shows how to use quaternions for representing 3D object orientation
Hello GL2 Example | Hello GL2 example demonstrates the basic use of the OpenGL-related classes provided with Qt
Textures Example | Textures example demonstrates the use of Qt's image classes as textures in applications that use both OpenGL and Qt to display graphics

## Qt Positioning

GeoFlickr (QML) | GeoFlickr example shows how to use the user's current position to fetch local content from a web service
Log File Position Source (C++) | Logfile Position Source shows how to create and work with a custom NMEA position source, for platforms without GPS
SatelliteInfo (C++/QML) | SatelliteInfo example shows how the available satellites at the user's current position and marks the satellites currently contributing to the GPS fix as pink
Weather Info (C++/QML) | Weather Info example shows how to use the user's current position to retrieve local content from a web service in a C++ plugin for QML

## Qt QML

Extending QML - Adding Types Example | Exporting C++ Classes
Extending QML - Attached Properties Example | Attached Properties
Extending QML - Binding Example | Binding
Extending QML - Inheritance and Coercion Example | C++ Inheritance and Coercion
Extending QML - Default Property Example | Default Property
Extending QML - Extension Objects Example | Extension Objects
Extending QML - Grouped Properties Example | Grouped Properties
Extending QML - Methods Example | Methods Support
Extending QML - Object and List Property Types Example | Exporting C++ Properties
Extending QML - Signal Support Example | Signal Support
Extending QML - Property Value Source Example | Property Value Source
QML Example - Dynamic Scene | This example demonstrates creating components dynamically
C++ Extensions: Network Access Manager Factory Example | Implements a custom network access manager for the QML engine
QML Examples - Internationalization | This is an internationalization example
QML Plugin Example | This example creates a C++ plugin extension by subclassing QQmlExtensionPlugin
Qt Quick Examples - XMLHttpRequest | This is a collection of XMLHttpRequest examples
Writing QML Extensions with C++ | Tutorial about extending QML with Qt C++

## Qt Quick

Qt Quick Examples - Animation | This is a collection of QML Animation examples
Qt Quick Examples - Canvas | This is a collection of QML Canvas examples
UI Components: Dial Control Example | Dial Control Example shows how to create a speedometer-type dial
UI Components: Flipable Example | Flipable Example shows an item that flips whenever clicked, rotating around the y-axis
Scene Graph - Painted Item | Shows how to implement QPainter-based custom scenegraph items
UI Components: Scroll Bar Example | Scroll Bar Example shows how to use scroll bars on a flickable element
TabWidget Example | TabWidget example shows how to create a tabwidget using property aliases and QML Object default properties
Qt Quick Demo - Calqlatr | A QML app designed for portrait devices that uses custom components, animated with AnimationController, and JavaScript for the application logic
Qt Quick Demo - Clocks | A QML clock application that demonstrates using a ListView type to display data generated by a ListModel and a SpringAnimation type to animate images
Qt Quick Demo - Maroon in Trouble | A Qt Quick game for touch devices that uses SpriteSequence, ParticleSystem, Emitter, and Wander types to animate objects and the SoundEffect type to play sound effects
Qt Quick Demo - Photo Surface | A QML app for touch devices that uses a Repeater with a FolderListModel to access content in a folder, and a PinchArea that contains a MouseArea to handle pinch gestures on the fetched content
Qt Quick Demo - Photo Viewer | A QML photo viewer that that uses XmlListModel and XmlRole to download Flickr feeds, and Package to display the photos in different views
Qt Quick Demo - RSS News | A QML RSS news reader that uses XmlListModel and XmlRole to download XML data, ListModel and ListElement to create a category list, and ListView to display the data
Qt Quick Demo - Same Game | A QML implementation of the popular puzzle game by Kuniaki Moribe
Qt Quick Demo - StocQt | A configurable stock chart for the NASDAQ-100
Qt Quick Demo - Tweet Search | A Twitter search client with 3D effects
Qt Quick Examples - Drag and Drop | This is a collection of QML drag and drop examples
Qt Quick Examples - externaldraganddrop | This is an example of drag-and-drop among QML applications
Qt Quick Examples - Image Elements | This is a collection of QML examples relating to image types
C++ Extensions: Image Provider Example | How to load images in QML with QQuickImageProvider
C++ Extensions: Image Response Provider Example | How to load images asynchronously in QML
Qt Quick Examples - Key Interaction | This is a collection of QML keyboard interaction examples
Qt Quick Examples - Local Storage | A collection of QML local storage examples
Models and Views: AbstractItemModel Example | Shows how to use a QAbstractItemModel subclass as a model in QML
Models and Views: Object ListModel Example | Shows how to use a QList as a model in QML
Models and Views: String ListModel Example | Shows how to use a QStringList as a model in QML
Qt Quick Examples - MouseArea | This is an example of the MouseArea type in QML
Qt Quick Particles Examples - Affectors | This is a collection of examples using Affectors in the QML particle system
Qt Quick Particles Examples - CustomParticle | This is a collection of examples using CustomParticle in the QML particle system
Qt Quick Particles Examples - Emitters | This is a collection of examples using Emitters in the QML particle system
Qt Quick Particles Examples - Image Particles | This is a collection of examples using Affectors in the QML particle system
Qt Quick Particles Examples - System | This is a collection of examples using Affectors in the QML particle system
Qt Quick Examples - Positioners | This is a collection of QML Positioner examples
Qt Quick Examples - Accessibility | This example demonstrates the implementation of accessible buttons
Qt Quick Widgets Example | Demonstrates how to mix QML with a Qt Widgets application using the QQuickWidget class
QQuickRenderControl Example | Shows how to render a Qt Quick scene into a texture that is then used by a non-Quick based OpenGL renderer
Qt Quick Examples - Right to Left | This is a collection of QML Right to Left examples
Scene Graph - Custom Geometry | Shows how to implement a custom geometry in the Qt Quick Scene Graph
Scene Graph - Graph | Demonstrates how one can combine custom materials and geometries under a single QQuickItem
Scene Graph - OpenGL Under QML | Shows how to render OpenGL under a Qt Quick scene
Scene Graph - Simple Material | Shows how to define a scene graph material to fill a shape
Scene Graph - Rendering FBOs | Shows how to use FramebufferObjects with Qt Quick
Scene Graph - Rendering FBOs in a thread | Shows how to use FramebufferObjects in a thread together with Qt Quick
Scene Graph - Two Texture Providers | Shows how to combine two textures from two texture providers in a custom scene graph node
Qt Quick Examples - Shader Effects | A Qt Quick example demonstrating the use of shader effects
Qt Quick Examples - Text | This is a collection of QML examples relating to text
Qt Quick Examples - Threading | This is a collection of QML multithreading examples
Threaded ListModel Example | Threaded ListModel example shows how to use a ListModel from multiple threads using WorkerScript
Qt Quick Examples - Touch Interaction | A collection of QML Touch Interaction examples
Qt Quick Examples - Views | This is a collection of QML model-view examples
Qt Quick Examples - Window and Screen | This example demonstrates the Window and Screen types in QML
QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks |
QML Advanced Tutorial 2 - Populating the Game Canvas |
QML Advanced Tutorial 3 - Implementing the Game Logic |
QML Advanced Tutorial 4 - Finishing Touches |
QML Dynamic View Ordering Tutorial 1 - A Simple ListView and Delegate |
QML Dynamic View Ordering Tutorial 2 - Dragging View Items |
QML Dynamic View Ordering Tutorial 3 - Moving Dragged Items |
QML Dynamic View Ordering Tutorial 4 - Sorting Items |

## Qt Quick Controls

Qt Quick Controls - Basic Layouts Example | Demonstrates how to use layout types to arrange a UI
Qt Quick Controls - Calendar Example | Demonstrates the use of Calendar control
Qt Quick Controls - File System Browser Example | An example for the TreeView control
Qt Quick Controls - Gallery | A collection of components for a classic desktop-style UI
Qt Quick Controls - Styles Example | Demonstrates custom styles
Qt Quick Controls - Table View Example | An example for the TableView control
Qt Quick Controls - Text Editor Example | A QML app using Qt Quick Controls and a C++ class to provide a fully-functional rich-text editor application
Qt Quick Controls - Touch Gallery | Demonstrates UI controls for a touch interface
Qt Quick Controls - UI Forms | Demonstrates how to separate the application logic from the UI

## Qt Quick Dialogs

Qt Quick System Dialog Examples | This example demonstrates the system dialog types in QML

## Qt Quick Extras

Qt Quick Extras - Dashboard | A car dashboard created using several CircularGauge controls
Qt Quick Extras - Flat | An interactive showcase of the flat style
Qt Quick Extras - Gallery | An interactive showcase of the various controls

## Qt SQL

Books | Shows how to use Qt SQL classes with a model/view framework
Cached Table Example | Cached Table example shows how a table view can be used to access a database, caching any changes to the data until the user explicitly submits them using a push button
Drill Down Example | Drill Down example shows how to read data from a database as well as submit changes, using the QSqlRelationalTableModel and QDataWidgetMapper classes
Master Detail Example | Master Detail Example shows how to present data from different data sources in the same application. The album titles, and the corresponding artists and release dates, are kept in a database, while each album's tracks are stored in an XML file
Query Model Example | Query Model example shows how to make customized versions of data obtained from a SQL query, using a model that encapsulates the query and table views to display the results
Relational Table Model Example | Relational Table Model example shows how to use table views with a relational model to visualize the relations between items in a database
SQL Browser | SQL Browser example shows how a data browser can be used to visualize the results of SQL statements on a live database
SQL Widget Mapper Example | SQL Widget Mapper example shows how to use a map information from a database to widgets on a form
Table Model Example | Table Model example shows how to use a specialized SQL table model with table views to edit information in a database

## Qt SVG

Text Object Example |
SVG Generator Example |
SVG Viewer Example |

## Qt Script

Context2D Example |
Default Prototypes Example |
Hello Script Example |

## Qt Sensors

Qt Sensors - Accel Bubble | AccelBubble example demonstrates the Accelerometer QML type
Qt Sensors - Grue Sensor Example | Qt Sensors - Grue sensor example demonstrates all the steps from creating a new sensor to using it
Qt Sensors - Maze QML Example | Maze example demonstrates the TiltSensor QML type
Qt Sensors - QML example | QtSensors - QML example demonstrates the QML sensors types in the QtSensors 5 import
Qt Sensors - SensorGesture QML Type example | Demonstrates the use of SensorGesture QML type
Qt Sensors - Explorer QML Example | Demonstrates how to read the meta-data of available sensors
Qt Sensors - C++ Sensor Gestures Example | Sensor gesture example demonstrates the steps for creating a C++ application that uses sensor gestures and the included shake sensor
Qt Sensors - ShakeIt QML Example | Sensor gesture example demonstrates the steps for creating a QML application that uses sensor gestures and the included shake sensor

## Qt Serial Bus

Modbus Master example | Example implements a Modbus master application
Modbus Slave example | Example implements a Modbus slave application
CAN Bus example | Example sends and receives CAN bus frames

## Qt Serial Port

Blocking Master Example | Shows how to use the synchronous API of QSerialPort in a worker thread
Blocking Slave Example | Shows how to use the synchronous API of QSerialPort in a non-GUI thread
Command Line Enumerator Example | Shows how to get information about serial devices in a system
Command Line Reader Async Example | Shows how to receive data asynchronously over serial port
Command Line Reader Sync Example | Shows how to receive data synchronously over serial port
Command Line Writer Async Example | Shows how to send data asynchronously over serial port
Command Line Writer Sync Example | Shows how to send data synchronously over serial port
Enumerator Example | Shows how to display information about serial devices in a system
Terminal Example | Shows how to use various features of QSerialPort

## Qt Test

Chapter 1: Writing a Unit Test | How to write a unit test
Chapter 2: Data Driven Testing | How to create data driven tests
Chapter 3: Simulating GUI Events | Howe to simulate GUI events
Chapter 4: Replaying GUI Events | How to replay GUI events
Chapter 5: Writing a Benchmark | How to write a benchmark

## Qt UI Tools

Multiple Inheritance Example | Using a form created with Qt Designer in an application
Text Finder Example | Dynamically processing forms using Qt UI Tools

## Qt WebChannel

Qt WebChannel ChatClient HTML Example | A HTML/JavaScript client that communicates over a WebSocket with a QWebChannel server
Qt WebChannel ChatClient QML Example | A QML client that communicates over a WebSocket with a QWebChannel server
Qt WebChannel ChatServer Example | A simple chat server implemented using the QWebChannel C++ API
Qt WebChannel Standalone Example | A simple chat between a server and a remote client running in a browser

## Qt WebEngine

WebEngine Qt Quick Minimal Example | Displays a web page using the Qt Quick integration of Qt WebEngine
WebEngine Quick Nano Browser | A web browser implemented using the WebEngineView QML type
WebEngine Content Manipulation Example | Demonstrates how to load and manipulate web content
WebEngine Cookie Browser Example | A cookie browser based on Qt WebEngine Widgets
WebEngine Demo Browser Example | A demo browser based on Qt WebEngine Widgets
WebEngine Markdown Editor Example | Demonstrates how to integrate a web engine in a hybrid desktop application
WebEngine Widgets Minimal Example | Displays a web page using Qt WebEngine Widgets
WebEngine Widgets Simple Browser Example | A simple browser based on Qt WebEngine Widgets

## Qt WebSockets

Echo Client Example | Describes how to use the WebSocket API for creating a simple echo client
Echo Server Example | Shows how to create a simple server application that sends back the messages it receives
QML WebSocket Client Example | Explains how to program a QML WebSocket client example
QML WebSocket Server Example | A simple example that shows how to use a QML WebSocketServer
Simple Chat Example | Shows how to use the QWebSocket and QWebSocketServer classes for creating a minimalistic chat application over the WebSocket protocol
SSL Echo Client Example | Shows how to use the QWebSocket class to implement an echo client over a secure connection (wss)
SSL Echo Server Example | Shows how to use the QWebSocketServer class for implementing a simple echo server over secure sockets (wss)

## Qt WebView

Qt WebView Examples - Minibrowser | Minibrowser example demonstrates how to use the Qt WebView module with Qt Quick

## Qt Widgets

System Tray Icon Example | System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray
Drop Site Example | Example shows how to distinguish the various MIME formats available in a drag and drop operation
Mouse Button Tester | 'Mouse Button Tester' example demonstrates how to reimplement mouse events within a custom class. You can also use this program to verify that Qt is actually receiving mouse events from your mouse
Part 1 - Designing the User Interface |
Part 2 - Adding Addresses |
Part 3 - Navigating between Entries |
Part 4 - Editing and Removing Addresses |
Part 5 - Adding a Find Function |
Part 6 - Loading and Saving |
Part 7 - Additional Features |
Address Book Example | Address book example shows how to use proxy models to display different views onto data from a single model
Affine Transformations | Demonstrates how affine transformations in QPainter works
Analog Clock Example | Analog Clock example shows how to draw the contents of a custom widget
Animated Tiles Example | Animated Tiles example animates items in a graphics scene
Application Chooser Example | Application Chooser example shows how to use the Qt state machine and the animation framework to select between applications
Application Example | Application example shows how to implement a standard GUI application with menus, toolbars, and a status bar. The example itself is a simple text editor program built around QPlainTextEdit
Basic Drawing Example | Basic Drawing example shows how to display basic graphics primitives in a variety of styles using the QPainter class
Basic Graphics Layouts Example | Demonstrates how to create basic graphics layout
Basic Layouts Example | Shows how to use the standard layout managers
Basic Sort/Filter Model Example | Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering
Blur Picker Effect Example | Demonstrates how to apply graphical effects on items in the view
Border Layout Example | Shows how to arrange child widgets along a border
Boxes | Combines advanced OpenGL rendering with the Graphics View framework
Calculator Example | Example shows how to use signals and slots to implement the functionality of a calculator widget, and how to use QGridLayout to place child widgets in a grid
Calendar Example | Calendar example shows how to create rich text content and display it using a rich text editor
Calendar Widget Example | Calendar Widget example shows use of QCalendarWidget
Character Map Example | Character Map example shows how to create a custom widget that can both display its own content and respond to user input
Chart Example | Chart example shows how to create a custom view for the model/view framework
40000 Chips | Visualizes a huge graphic view scene with 40000 chip items
Class Wizard Example | License Wizard example shows how to implement linear wizards using QWizard
Code Editor Example | Code Editor example shows how to create a simple editor that has line numbers and that highlights the current line
Colliding Mice Example | Demonstrates how to animate items on a graphics view
Color Editor Factory Example | This example shows how to create an editor that can be used by a QItemDelegate
Combo Widget Mapper Example | Combo Widget Mapper example shows how to use a custom delegate to map information from a model to specific widgets on a form
Completer Example | Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model
Composition Modes | Demonstrates how Composition Modes work in QPainter
Concentric Circles Example | Demonstrates the improved quality that antialiasing and floating point precision gives
Config Dialog Example | Config Dialog examples shows how a configuration dialog can be created by using an icon view with a stacked widget
Custom Sort/Filter Model Example | Custom Sort/Filter Model example illustrates how to subclass QSortFilterProxyModel to perform advanced sorting and filtering
Vector Deformation | Demonstrates how to manipulate the elements of a QPainterPath
Diagram Scene Example | Demonstrate how to use the Graphics View framework
Digital Clock Example | Digital Clock example shows how to use QLCDNumber to display a number with LCD-like digits
Dir View Example | This example demonstrates the usage of a tree view
Dock Widgets Example | Dock Widgets example shows how to add dock windows to an application. It also shows how to use Qt's rich text engine
Drag and Drop Puzzle Example | Drag and Drop Puzzle example demonstrates a way of using the drag and drop system with item view widgets
Drag and Drop Robot Example | Demonstrates how to drag and drop items in a graphics view
Draggable Icons Example | Draggable Icons example shows how to drag and drop image data between widgets in the same application, and between different applications
Draggable Text Example | Draggable Text example shows how to drag and drop textual data between widgets in the same application, and between different applications
Dynamic Layouts Example | Shows how to re-orient widgets in running applications
Easing Curves Example | Easing Curves example shows how to use easing curves to control the speed of an animation
Echo Plugin Example | This example shows how to create a Qt plugin
Editable Tree Model Example | This example shows how to implement a simple item-based tree model that can be used with other classes the model/view framework
Elastic Nodes Example | Demonstrates how to interact with graphical items in a scene
Elided Label Example | This example creates a widget similar to QLabel, that elides the last visible line, if the text is too long to fit the widget's geometry
Embedded Dialogs | Demonstrates how to embed dialogs into a graphics view
Event Transitions Example | Event Transitions example shows how to use event transitions, a feature of The State Machine Framework
Extension Example | Extension example shows how to add an extension to a QDialog using the QAbstractButton::toggled() signal and the QWidget::setVisible() slot
Factorial States Example | Factorial States example shows how to use The State Machine Framework to calculate the factorial of an integer
Fade Message Effect Example | Demonstrates how to apply effects on items in the view
Fetch More Example | Fetch More example shows how two add items to an item view model on demand
Find Files Example | Find Files example shows how to use QProgressDialog to provide feedback on the progress of a slow operation. The example also shows how to use QFileDialog to facilitate browsing, how to use QTextStream's streaming operators to read a file, and how to use QTableWidget to provide standard table display facilities for applications. In addition, files can be opened using the QDesktopServices class
Flow Layout Example | Shows how to arrange widgets for different window sizes
Font Sampler Example | Font Sampler example shows how to preview and print multi-page documents
Fridge Magnets Example | Fridge Magnets example illustrates how to move around several types of MIME-encoded data with drag and drop
Frozen Column Example | This example demonstrates how to freeze a column within a QTableView
Gradients | Shows how gradients can be used with QPainter
Anchor Layout Example | Demonstrates anchor layout in a graphics view scene
Graphics View Flow Layout Example | Demonstrates flow layout on a graphics view scene
Simple Anchor Layout Example | Demonstrates anchor layout on a graphics view scene
Weather Anchor Layout Example | Demonstrates anchor layout on a graphics view scene
Group Box Example | Group Box example shows how to use the different kinds of group boxes in Qt
I18N Example | Internationalization (I18N) example demonstrates Qt's support for translated text. Developers can write the initial application text in one language, and translations can be provided later without any modifications to the code. It also demonstrates how to detect the system language settings and show the UI in the appropriate language
Icons Example | Icons example shows how QIcon can generate pixmaps reflecting an icon's state, mode and size
Image Composition Example | Shows how composition modes work in QPainter
Image Viewer Example | Example shows how to combine QLabel and QScrollArea to display an image
Interview | This example demonstrates the usage of the model/view framework
Item Views Puzzle Example | Puzzle example shows how to enable drag and drop with a custom model to allow items to be transferred between a view and another widget
License Wizard Example | License Wizard example shows how to implement complex wizards in Qt
Lighting Effect Example | Demonstrates how to apply effects on items in the view
Line Edits Example | Line Edits example demonstrates the many ways that QLineEdit can be used, and shows the effects of various properties and validators on the input and output supplied by the user
Main Window | Main Window example shows Qt's extensive support for tool bars, dock windows, menus, and other standard application features
MDI Example | MDI example shows how to implement a Multiple Document Interface using Qt's QMdiArea class
Menus Example | Menus example demonstrates how menus can be used in a main window application
Move Blocks Example | Move Blocks example shows how to animate items in a QGraphicsScene using a QStateMachine with a custom transition
Movie Example | Movie example demonstrates how to use QMovie and QLabel to display animations
Order Form Example | Order Form example shows how to generate rich text documents by combining a simple template with data input by the user in a dialog
Pad Navigator Example | Demonstrates how to create animated user interface
Painter Paths Example | Painter Paths example shows how painter paths can be used to beuild complex shapes for rendering
Path Stroking | Path Stroking example shows various types of pens that can be used with QPainter
Ping Pong States Example | Ping Pong States example shows how to use parallel states together with custom events and transitions in The State Machine Framework
Pixelator Example | Pixelator example shows how delegates can be used to customize the way that items are rendered in standard item views
Plug & Paint Example | Demonstrates how to extend Qt applications using plugins
Plug & Paint Basic Tools Example | A plugin providing the basic tools for painting functionality
Plug & Paint Extra Filters Example | A plugin providing the extra filters
Regular Expressions Example | Regular Expressions (RegExp) example shows how regular expressions in Qt are applied to text by providing an environment in which new regular expressions can be created and tested on custom text strings
QRegularExpression Example | QRegularExpression example shows how regular expressions in Qt are applied to text by providing an environment in which new regular expressions can be created and tested on custom text strings
Rogue Example | Rogue example shows how to use the Qt state machine for event handling
Screenshot Example | Screenshot example shows how to take a screenshot of the desktop
Scribble Example | Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets
SDI Example | SDI example shows how to create a Single Document Interface. It uses a number of top-level windows to display the contents of different text files
Settings Editor Example | Settings Editor example shows how Qt's standard settings support is used in an application by providing an editor that enables the user to view the settings for installed applications, and modify those that can be edited
Shaped Clock Example | Shaped Clock example shows how to apply a widget mask to a top-level widget to produce a shaped window
Simple DOM Model Example | Simple DOM Model example shows how an existing class can be adapted for use with the model/view framework
Simple Tree Model Example | Simple Tree Model example shows how to use a hierarchical model with Qt's standard view classes
Simple Widget Mapper Example | Simple Widget Mapper example shows how to use a widget mapper to display data from a model in a collection of widgets
SIP Dialog Example | SIP Dialog example shows how to create a dialog that is aware of the Windows Mobile SIP (Software Input Panel) and reacts to it
Sliders Example | Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial
Spin Box Delegate Example | Spin Box Delegate example shows how to create an editor for a custom delegate in the model/view framework by reusing a standard Qt editor widget
Spin Boxes Example | Spin Boxes example shows how to use the many different types of spin boxes available in Qt, from a simple QSpinBox widget to more complex editors like the QDateTimeEdit widget
Spreadsheet | Spreadsheet example shows how to create a simple spreadsheet application
Standard Dialogs Example | Standard Dialogs example shows the standard dialogs that are provided by Qt
Star Delegate Example | Star Delegate example shows how to create a delegate that can paint itself and that supports editing
States Example | States example shows how to use the Qt state machine to play animations
Stickman Example | Stickman example shows how to animate transitions in a state machine to implement key frame animations
Style Plugin Example | This example shows how to create a plugin that extends Qt with a new GUI look and feel
Styles Example | Styles example illustrates how to create custom widget drawing styles using Qt, and demonstrates Qt's predefined styles
Style Sheet Example | Style Sheet Example shows how to use style sheets
Sub-Attaq | This example shows Qt's ability to combine the animation framework and the state machine framework to create a game
Syntax Highlighter Example | Syntax Highligher example shows how to perform simple syntax highlighing
Tab Dialog Example | Tab Dialog example shows how to construct a tab dialog using the QTabWidget class
Tablet Example | This example shows how to use a Wacom tablet in Qt applications
Tetrix Example | Tetrix example is a Qt version of the classic Tetrix game
Text Edit | Text Edit example shows Qt's rich text editing facilities in action
Tool Tips Example | Tool Tips example shows how to provide static and dynamic tool tips for an application's widgets
Traffic Light Example | Traffic Light example shows how to use The State Machine Framework to implement the control flow of a traffic light
Transformations Example | Transformations example shows how transformations influence the way that QPainter renders graphics primitives
Tree Model Completer Example | Tree Model Completer example shows how to provide completion facilities for a hierarchical model, using a period as the separator to access Child, GrandChild and GrandGrandChild level objects
Trivial Wizard Example | Trivial Wizard example illustrates how to create a linear three-page registration wizard using three instances of QWizardPage and one instance of QWizard
Two-way Button Example | Two-way button example shows how to use The State Machine Framework to implement a simple state machine that toggles the current state when a button is clicked
Undo Framework | This example shows Qt's undo framework in action
Undo Framework Example | This example shows how to implement undo/redo functionality with the Qt undo framework
Validators Example | Validators example shows the signal emission behavior of input validators
Wiggly Example | Wiggly example shows how to animate a widget using QBasicTimer and timerEvent(). In addition, the example demonstrates how to use QFontMetrics to determine the size of text on screen
Window Flags Example | Window Flags example shows how to use the window flags available in Qt
Image Gestures Example | Demonstrates the use of simple gestures in a widget
Text Codecs Example | How to import and export text using text codecs
Custom Completer Example | Custom Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model. The completer pops up suggestions for possible words based on the first three characters input by the user and the user's choice of word is inserted into the using QTextCursor
Widgets Tutorial - Child Widgets |
Widgets Tutorial - Nested Layouts |
Widgets Tutorial - Creating a Window |
Widgets Tutorial - Using Layouts |

## Qt XML

DOM Bookmarks Example | Provides a reader for XML Bookmark Exchange Language files
SAX Bookmarks Example | Demonstrates how to read XBEL files
QXmlStream Bookmarks Example | Demonstrates how to read and write to XBEL files
XML Stream Lint Example | A commandline tool reading from an input file and writing to the standard output file

## Qt XML Patterns

File System Example | Using Qt XML Patterns for querying non-XML data that is modeled to look like XML
Recipes Example | Using Qt XML Patterns to query XML data loaded from a file
XML Schema Validation Example | Using Qt XML Patterns to validate XML with a W3C XML Schema
C++ Source Code Analyzer Example | Using XQuery and the command line utility to query C++ source code