All Qt Examples
A tutorial for Qt Quick based on an alarms application. | |
A QML app designed for portrait devices that uses custom components, animated with AnimationController, and JavaScript for the application logic. | |
A QML clock application that demonstrates using a ListView type to display data generated by a ListModel and a SpringAnimation type to animate images. | |
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. | |
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. | |
A QML photo viewer that that uses XmlListModel and XmlRole to download Flickr feeds, and Package to display the photos in different views. | |
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. | |
A QML implementation of the popular puzzle game by Kuniaki Moribe. | |
A configurable stock chart for the NASDAQ-100. | |
A Twitter search client with 3D effects. |
Qt 3D
Demonstrates creating advanced materials in Qt3D. | |
Demonstrates combining Qt 3D rendering and Qt Quick 2 elements. | |
Shows four basic shapes that Qt 3D offers and sets up a mesh for each of them. | |
A QML example that demonstrates rendering a Scenegraph from multiple viewports. | |
A QML application that demonstrates using PBR materials. | |
Demonstrates combining Qt 3D rendering and Qt Quick 2 elements. | |
A QML application that demonstrates using Qt Quick 2 within a Qt 3D scene. | |
A QML application that demonstrates visualizing a 3D scene. | |
A QWidget-based application with a QML scene containing a 3D scene. | |
A QML application that demonstrates visualizing multiple 3D scenes using Scene3D and Scene3DView. | |
A Qt 3D QML application that illustrates how to render a scene in Qt 3D with shadows. | |
A C++ application that demonstrates how to render a scene in Qt 3D. | |
Demonstrates creating a custom material in Qt 3D. | |
A QML application that demonstrates how to render a scene in Qt 3D. | |
A QML application that demonstrates using vertex and geometry shaders. | |
A Qt 3D QML application that implements a single-pass wireframe rendering method. |
Qt Charts
The example shows how to create a simple area chart. | |
This example shows the drawing of dynamic data (microphone input). | |
The example shows how to create a bar chart. | |
This example shows how to use QAbstractItemModel derived model as the data for the bar series. | |
The example shows how to create a box-and-whiskers chart. | |
This example shows how to draw an additional element (a callout) on top of the chart. | |
Shows how to create a candlestick chart. | |
The example shows the look and feel of the different built-in themes. | |
This example shows how to customize the appearance of the different elements on a chart. | |
The example shows how to use QLineChart with QDateTimeAxis. | |
This example shows how to use create a donut breakdown chart using QPieSeries API. | |
This example shows how to create a simple donut chart, and do some customizations to a slice. | |
This example shows how to draw dynamic data. | |
The example shows how to create a horizontal bar chart. | |
The example shows how to create a simple horizontal percent bar chart. | |
The example shows how to create a simple stacked horizontal bar chart. | |
This example shows how to detach the legend from the chart and how to attach it back. | |
The example shows how to make use of legend markers. | |
The example shows how to combine different charts and set the axes. | |
The example shows how to create a simple line chart. | |
The example shows how to use QLogValueAxis. | |
This example shows how to use the QAbstractItemModel derived model as the data for the series. | |
The example shows how to create a simple chart with two vertical axes. One for each series. | |
This example shows how to create a nested donuts chart using the QPieSeries API. | |
The example shows how to enable OpenGL acceleration for QLineSeries and QScatterSeries. | |
The example shows how to create a simple percent bar chart. | |
This example shows how the look and feel of a pie chart can be customized. | |
The example shows how to implement a piechart with drilldown effect. | |
The example shows how to create a simple pie chart and do some customizations to a pie slice. | |
The example shows how to create a simple polar chart with multiple different series. | |
This is a demonstration of how to use axes in your QML application. | |
This basic demonstration shows how to use the different chart types by using qml. | |
This example shows you how to create your own custom legend. | |
This application shows you how to customize different visual properties of a ChartView and series. | |
This application demonstrates how to use XmlListModel as a datasource for a Chart. | |
The example shows how to implement application with strict performance requirements using the Qt Charts QML API. | |
This is a demonstration on how to use a polar chart in your QML application. | |
This is a basic demonstration showing how to use the different chart types by using qml. | |
This example shows how to create a simple scatter chart and how to interact with the chart. | |
The example shows how to create a simple scatter chart. | |
The example shows how to create a simple spline chart. | |
The example shows how to implement drilldown using a stacked barchart. | |
The example shows how to create a simple stacked bar chart. | |
The example shows how to create a bar chart with negative bars. | |
The example shows how to create your own custom zooming effect. |
Qt Gamepad
Enables configuring the gamepad buttons. | |
Demonstrates how to use navigation keys on the gamepad. | |
Depicts joystick movement using a pointer. | |
Demonstrates how to interact with the gamepad using QML. | |
A simple example demonstrating the APIs in use. |
Qt Location
The Map Viewer example shows how to display and interact with a map, search for an address, and find driving directions. | |
How to use transitions together with MapItemView. | |
The minimum code to display a map using Qt Quick. | |
The Places example demonstrates how to search for Places and access related content. | |
The Places List example demonstrates how to search for and display a list of places using a ListView. | |
The Places Map example demonstrates how to search for and display a list of places on a map using a MapItemView. | |
The Plane Spotter example demonstrates the tight integration of location and positioning data types into QML. |
Qt Multimedia
Testing the available audio devices and their configuration. | |
Recording audio using the QAudioInput class. | |
Enabling audio playback using the QAudioOutput class. | |
Discovering the available devices and supported codecs. | |
Enabling 3D sound control using the Qt Audio Engine API. | |
The Camera Example shows how to use the API to capture a still image or video. | |
Demonstrates using the Radio QML type from Qt Multimedia. | |
Playing audio and video. | |
The Camera Example shows how to use the API to capture a still image or video. | |
Transforming video and camera viewfinder content. | |
Applying shader effects on video and camera viewfinder content. | |
Analyzing a raw audio stream using the FFTReal library. | |
Streaming video on a graphics scene. | |
Implementing a video player widget. |
Qt Network Authorization
Demonstrates authenticating with OAuth 2 to access Reddit. | |
Demonstrates authenticating with OAuth to access a Twitter timeline. |
Qt Positioning
The GeoFlickr example shows how to use the user's current position to fetch local content from a web service. | |
The Logfile Position Source shows how to create and work with a custom NMEA position source, for platforms without GPS. | |
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. | |
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
QtHangman is an example that demonstrates how to use the Qt Purchasing API with Qt Quick. |
Qt SCXML
A widget-based application that implements the Calculator example presented in the SCXML Specification. | |
A Qt Quick application that implements the Calculator example presented in the SCXML Specification. | |
Implements a simple FTP client using a state machine. | |
Invokes a dynamically loaded nested state machine. | |
Invokes a compiled nested state machine. | |
A widget-based application that sends data to and receives it from a dynamically loaded ECMAScript data model. | |
A widget-based application that sends data to and receives it from a compiled ECMAScript data model. | |
Sends data to and receives it from a C++ data model. | |
A Qt Quick application that sends data to and receives it from a dynamically loaded ECMAScript data model. | |
A Qt Quick application that sends data to and receives it from a compiled ECMAScript data model. | |
Encapsulates the internal logic of an application in an SCXML file. | |
Presents the use of SCXML in a sudoku game. | |
A widget-based application that uses a dynamically loaded state machine to implement a traffic light. | |
A widget-based application that uses a compiled state machine to implement a traffic light. | |
A Qt Quick application that uses a dynamically loaded state machine to implement a traffic light. | |
A Qt Quick application that uses a compiled state machine to implement a simplified traffic light. | |
A Qt Quick application that uses a compiled state machine to implement a traffic light. |
Qt SVG
Qt Script
Qt Sensors
The AccelBubble example demonstrates the Accelerometer QML type. | |
The sensor gesture example demonstrates the steps for creating a C++ application that uses sensor gestures and the included shake sensor. | |
Demonstrates how to read the meta-data of available sensors. | |
The Qt Sensors - Grue sensor example demonstrates all the steps from creating a new sensor to using it. | |
The Maze example demonstrates the TiltSensor QML type. | |
The QtSensors - QML example demonstrates the QML sensors types in the QtSensors 5 import. | |
Demonstrates the use of SensorGesture QML type. | |
The sensor gesture example demonstrates the steps for creating a QML application that uses sensor gestures and the included shake sensor. |
Qt Serial Bus
The example sends and receives CAN bus frames. | |
The example implements a Modbus master application. | |
The example implements a Modbus slave application. |
Qt Serial Port
Shows how to use the synchronous API of QSerialPort in a worker thread. | |
Shows how to use the synchronous API of QSerialPort in a non-GUI thread. | |
Shows how to get information about serial devices in a system. | |
Shows how to receive data asynchronously over serial port. | |
Shows how to receive data synchronously over serial port. | |
Shows how to send data asynchronously over serial port. | |
Shows how to send data synchronously over serial port. | |
Shows how to display information about serial devices in a system. | |
Shows how to use various features of QSerialPort. |
Qt Speech
The Hello Speak example reads out a small piece of text. |
Qt Virtual Keyboard
This is a basic QML example that uses the virtual keyboard. |
Qt WebChannel
A HTML/JavaScript client that communicates over a WebSocket with a QWebChannel server. | |
A QML client that communicates over a WebSocket with a QWebChannel server. | |
A simple chat server implemented using the QWebChannel C++ API. | |
A simple chat between a server and a remote client running in a browser. |
Qt WebSockets
Describes how to use the WebSocket API for creating a simple echo client. | |
Shows how to create a simple server application that sends back the messages it receives. | |
Explains how to program a QML WebSocket client example. | |
A simple example that shows how to use a QML WebSocketServer. | |
Shows how to use the QWebSocket class to implement an echo client over a secure connection (wss). | |
Shows how to use the QWebSocketServer class for implementing a simple echo server over secure sockets (wss). | |
Shows how to use the QWebSocket and QWebSocketServer classes for creating a minimalistic chat application over the WebSocket protocol. |
Qt XML Patterns
Using XQuery and the xmlpatterns command line utility to query C++ source code. | |
Using Qt XML Patterns for querying non-XML data that is modeled to look like XML. | |
Using Qt XML Patterns to query XML data loaded from a file. | |
Using Qt XML Patterns to validate XML with a W3C XML Schema. |