All Qt Examples | Qt 5.15

- Qt 5.15
- All Qt Examples
- Qt 5.15.18 Reference Documentation

# 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 3D

Qt 3D: Advanced Custom Material QML Example | Demonstrates creating advanced materials in Qt3D.
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: Multi Viewport QML Example | A QML example that demonstrates rendering a Scenegraph from multiple viewports.
Qt 3D: PBR Materials QML Example | A QML application that demonstrates using PBR materials.
Qt 3D: Planets QML Example | Demonstrates combining Qt 3D rendering and Qt Quick 2 elements.
Qt 3D: Scene2D QML Example | A QML application that demonstrates using Qt Quick 2 within a Qt 3D scene.
Qt 3D: Scene3D QML Example | A QML application that demonstrates visualizing a 3D scene.
Qt 3D: Scene3D QML with Widgets Example | A QWidget-based application with a QML scene containing a 3D scene.
Qt 3D: Scene3DView QML Example | A QML application that demonstrates visualizing multiple 3D scenes using Scene3D and Scene3DView.
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 | A C++ application that demonstrates how to render a scene in Qt 3D.
Qt 3D: Simple Custom Material QML Example | Demonstrates creating a custom material in Qt 3D.
Qt 3D: Simple QML Example | A QML application that demonstrates how to render a scene in Qt 3D.
Qt 3D: Wave QML Example | A QML application that demonstrates using vertex and geometry shaders.
Qt 3D: Wireframe QML Example | A Qt 3D QML application that implements a single-pass wireframe rendering method.

## Qt Charts

AreaChart Example | The example shows how to create a simple area chart.
Audio Example | This example shows the drawing of dynamic data (microphone input).
BarChart Example | The example shows how to create a bar chart.
BarModelMapper Example | This example shows how to use QAbstractItemModel derived model as the data for the bar series.
Box and Whiskers Example | The example shows how to create a box-and-whiskers chart.
Callout Example | This example shows how to draw an additional element (a callout) on top of the chart.
Candlestick Chart Example | Shows how to create a candlestick chart.
Chart Themes Example | The example shows the look and feel of the different built-in themes.
Custom Chart Example | This example shows how to customize the appearance of the different elements on a chart.
DateTimeAxis Example | The example shows how to use QLineChart with QDateTimeAxis.
Donut Chart Breakdown Example | This example shows how to use create a donut breakdown chart using QPieSeries API.
Donutchart Example | This example shows how to create a simple donut chart, and do some customizations to a slice.
Dynamic Spline Example | This example shows how to draw dynamic data.
HorizontalBarChart Example | The example shows how to create a horizontal bar chart.
HorizontalPercentBarChart Example | The example shows how to create a simple horizontal percent bar chart.
HorizontalStackedBarChart Example | The example shows how to create a simple stacked horizontal bar chart.
Legend Example | This example shows how to detach the legend from the chart and how to attach it back.
LegendMarkers Example | The example shows how to make use of legend markers.
Line and BarChart Example | The example shows how to combine different charts and set the axes.
LineChart Example | The example shows how to create a simple line chart.
Logarithmic Axis Example | The example shows how to use QLogValueAxis.
Model Data Example | This example shows how to use the QAbstractItemModel derived model as the data for the series.
Multiple Axes Example | The example shows how to create a simple chart with two vertical axes. One for each series.
Nested Donuts Example | This example shows how to create a nested donuts chart using the QPieSeries API.
OpenGL Accelerated Series Example | The example shows how to enable OpenGL acceleration for QLineSeries and QScatterSeries.
PercentBarChart Example | The example shows how to create a simple percent bar chart.
Pie Chart Customization Example | This example shows how the look and feel of a pie chart can be customized.
Piechart Drilldown Example | The example shows how to implement a piechart with drilldown effect.
Piechart Example | The example shows how to create a simple pie chart and do some customizations to a pie slice.
Polar Chart Example | The example shows how to create a simple polar chart with multiple different series.
Qml Axes | This is a demonstration of how to use axes in your QML application.
Qml Charts Example | This basic demonstration shows how to use the different chart types by using qml.
Qml Custom Legend | This example shows you how to create your own custom legend.
Qml Customizations | This application shows you how to customize different visual properties of a ChartView and series.
Qml F1 Legends | This application demonstrates how to use XmlListModel as a datasource for a Chart.
Qml Oscilloscope | The example shows how to implement application with strict performance requirements using the Qt Charts QML API.
Qml Polar Chart | This is a demonstration on how to use a polar chart in your QML application.
Qml Weather | This is a basic demonstration showing how to use the different chart types by using qml.
Scatter Interactions Example | This example shows how to create a simple scatter chart and how to interact with the chart.
ScatterChart Example | The example shows how to create a simple scatter chart.
SplineChart Example | The example shows how to create a simple spline chart.
StackedBarChart Drilldown Example | The example shows how to implement drilldown using a stacked barchart.
StackedBarChart Example | The example shows how to create a simple stacked bar chart.
Temperature Records Example | The example shows how to create a bar chart with negative bars.
Zoom Line Example | The example shows how to create your own custom zooming effect.

## Qt Gamepad

Qt Gamepad Configure Buttons Example | Enables configuring the gamepad buttons.
Qt Gamepad Key Navigation Example | Demonstrates how to use navigation keys on the gamepad.
Qt Gamepad Mouse Item Example | Depicts joystick movement using a pointer.
Qt Gamepad Qt Quick Example | Demonstrates how to interact with the gamepad using QML.
Qt Gamepad Simple Example | A simple example demonstrating the APIs in use.

## Qt Location

Map Viewer (QML) | The 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) | The minimum code to display a map using Qt Quick.
Places (QML) | The Places example demonstrates how to search for Places and access related content.
Places List (QML) | The Places List example demonstrates how to search for and display a list of places using a ListView.
Places Map (QML) | The Places Map example demonstrates how to search for and display a list of places on a map using a MapItemView.
Plane Spotter (QML) | The 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 | The 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 | The 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 Network Authorization

Reddit Example | Demonstrates authenticating with OAuth 2 to access Reddit.
Twitter Timeline Example | Demonstrates authenticating with OAuth to access a Twitter timeline.

## Qt Positioning

GeoFlickr (QML) | The GeoFlickr example shows how to use the user's current position to fetch local content from a web service.
Log File Position Source (C++) | The Logfile Position Source shows how to create and work with a custom NMEA position source, for platforms without GPS.
SatelliteInfo (C++/QML) | The 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) | The 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 Purchasing

Qt Purchasing Examples - QtHangman | QtHangman is an example that demonstrates how to use the Qt Purchasing API with Qt Quick.

## Qt SCXML

Qt SCXML Calculator Example | A widget-based application that implements the Calculator example presented in the SCXML Specification.
Qt SCXML Calculator QML Example | A Qt Quick application that implements the Calculator example presented in the SCXML Specification.
Qt SCXML FTP Client Example | Implements a simple FTP client using a state machine.
Qt SCXML Invoke Example (Dynamic) | Invokes a dynamically loaded nested state machine.
Qt SCXML Invoke Example (Static) | Invokes a compiled nested state machine.
Qt SCXML Media Player Example (Dynamic) | A widget-based application that sends data to and receives it from a dynamically loaded ECMAScript data model.
Qt SCXML Media Player Example (Static) | A widget-based application that sends data to and receives it from a compiled ECMAScript data model.
Qt SCXML Media Player QML Example (C++ Data Model) | Sends data to and receives it from a C++ data model.
Qt SCXML Media Player QML Example (Dynamic) | A Qt Quick application that sends data to and receives it from a dynamically loaded ECMAScript data model.
Qt SCXML Media Player QML Example (Static) | A Qt Quick application that sends data to and receives it from a compiled ECMAScript data model.
Qt SCXML Pinball Example | Encapsulates the internal logic of an application in an SCXML file.
Qt SCXML Sudoku Example | Presents the use of SCXML in a sudoku game.
Qt SCXML Traffic Light Example (Dynamic) | A widget-based application that uses a dynamically loaded state machine to implement a traffic light.
Qt SCXML Traffic Light Example (Static) | A widget-based application that uses a compiled state machine to implement a traffic light.
Qt SCXML Traffic Light QML Example (Dynamic) | A Qt Quick application that uses a dynamically loaded state machine to implement a traffic light.
Qt SCXML Traffic Light QML Example (Simple) | A Qt Quick application that uses a compiled state machine to implement a simplified traffic light.
Qt SCXML Traffic Light QML Example (Static) | A Qt Quick application that uses a compiled state machine to implement a traffic light.

## Qt SVG

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

## Qt Script

Context2D Example |
Default Prototypes Example |
Hello Script Example |

## Qt Sensors

Qt Sensors - Accel Bubble | The AccelBubble example demonstrates the Accelerometer QML type.
Qt Sensors - C++ Sensor Gestures Example | The 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 | The Qt Sensors - Grue sensor example demonstrates all the steps from creating a new sensor to using it.
Qt Sensors - Maze QML Example | The Maze example demonstrates the TiltSensor QML type.
Qt Sensors - QML example | The 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 | The sensor gesture example demonstrates the steps for creating a QML application that uses sensor gestures and the included shake sensor.

## Qt Serial Bus

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

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

Hello Speak Example | The Hello Speak example reads out a small piece of text.

## Qt Virtual Keyboard

Qt Quick Virtual Keyboard - Basic Example | This is a basic QML example that uses the virtual keyboard.

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