All Qt Examples

Coffee Machine Example

Getting Started Programming with Qt Quick

A tutorial for Qt Quick based on an alarms application.

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 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 Low Energy Heart Rate Game

A game demonstrating the interaction with a Bluetooth Low Energy Heart Rate device/service

Bluetooth Low Energy Heart Rate Server Example

An example demonstrating how to set up and advertise a GATT service. The example demonstrates the use of the Qt Bluetooth Low Energy classes related to peripheral (slave) functionality

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

Bluetooth QML Chat Example

An example demonstrating communication through Bluetooth QML API

Bluetooth QML Ping Pong example

A QML example showing Bluetooth communication

Bluetooth Scanner Example

An example showing how to locate Bluetooth devices

QML Bluetooth Picture Push Example

An example showing the use Bluetooth Object Push Profile (OPP)

QML Bluetooth Scanner Example

A QML example about locating Bluetooth devices

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

MapItemView Transitions (QML)

How to use transitions together with MapItemView

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)

Plane Spotter example demonstrates the tight integration of location and positioning data types into QML

Qt Multimedia

Audio Devices Example

Testing the available audio devices and their configuration

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

AudioEngine Example

Enabling 3D sound control using the Qt Audio Engine API

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

Media Player Example

Playing audio and video

QML Camera Example

Camera Example shows how to use the API to capture a still image or video

QML Video Example

Transforming video and camera viewfinder content

QML Video Shader Effects Example

Applying shader effects on video and camera viewfinder content

Spectrum Example

Analyzing a raw audio stream using the FFTReal library

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

NDEF Editor Example

An example about reading and writing NFC Data Exchange Format (NDEF) messages to NFC Forum Tags

QML CorkBoard Example

A QML example about displaying NFC Data Exchange Format (NDEF) messages

QML Poster Example

A QML example about reading and displaying NFC Data Exchange Format (NDEF) messages

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 Quick Controls

Qt Quick Controls - Chat Tutorial

Tutorial about writing a basic chat client using Qt Quick Controls

Qt Quick Controls - Contact List

A QML app using Qt Quick Controls and a C++ class that implements a simple contact list

Qt Quick Controls - Flat Style

A QML app using Qt Quick Controls and a QML plugin with customized controls

Qt Quick Controls - Gallery

A gallery of controls

Qt Quick Controls - Imagine Style Example: Automotive

An automotive user interface using custom Imagine style assets

Qt Quick Controls - Imagine Style Example: Music Player

An audio player user interface using custom Imagine style assets

Qt Quick Controls - Side Panel

A persistent side panel with Drawer

Qt Quick Controls - Swipe to Remove

Demonstrates removal of list items by swipe gesture

Qt Quick Controls - Text Editor

A QML app using Qt Quick Controls and a C++ class to provide a fully-functional rich-text editor application

Qt Quick Controls - Wearable Demo

Demonstrates an application launcher designed for wearable devices

Qt Quick Controls 1

Qt Quick Controls 1 - Calendar Example

Demonstrates the use of Calendar control

Qt Quick Controls 1 - File System Browser Example

An example for the TreeView control

Qt Quick Controls 1 - Gallery

A collection of components for a classic desktop-style UI

Qt Quick Controls 1 - Styles Example

Demonstrates custom styles

Qt Quick Controls 1 - Table View Example

An example for the TableView control

Qt Quick Controls 1 - 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 1 - Touch Gallery

Demonstrates UI controls for a touch interface

Qt Quick Controls 1 - 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 SVG

Qt Script

Qt Sensors

Qt Sensors - Accel Bubble

AccelBubble example demonstrates the Accelerometer QML type

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 - Explorer QML Example

Demonstrates how to read the meta-data of available sensors

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 - 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 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 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 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

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)

Simple Chat Example

Shows how to use the QWebSocket and QWebSocketServer classes for creating a minimalistic chat application over the WebSocket protocol

Qt XML Patterns

C++ Source Code Analyzer Example

Using XQuery and the xmlpatterns command line utility to query C++ source code

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