Qt Quick Examples and Tutorials#
Building UIs with QML
Qt includes several examples to demonstrate a particular usage. The examples run as applications or as non-GUI examples in Qt Creator. Qt tutorials show the step-by-step information and give insight to particular code snippets.
This page lists the Qt QML and Qt Quick examples, however, many other Qt modules contain examples related to their QML API.
Running the Examples and Demos#
Open and run examples within Qt Creator’s Welcome mode. Most of the examples run on various platforms and to search for platform-specific examples, type the platform name (or any keywords) in the search field. For example, typing
mobile in the search field lists the examples that are fully compatible with the mobile platforms.
To view other examples and tutorials, visit the Qt Examples And Tutorials page.
Qt Quick Demos#
Here is a list of fully-functional demo applications. They are full applications that show how a deployable Qt application is built and structured. Many of the demos are deployable to mobile and desktop platforms.
Demonstrates material and effects capabilities of Qt Quick 3D. This example demonstrates how you can use particle effects and materials in Qt Quick 3D.
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 application with a state-based custom user interface.
Example of how to create a RESTful API QML client.
A dice throwing application that demonstrates using Qt Quick 3D Physics and Qt Quick 3D.
A QML app for touch devices that uses a Repeater with a FolderListModel to access content in a folder, and a PinchHandler to handle pinch gestures on the fetched content.
Demonstrates how to add a C++ backend to a 3D project from Qt Design Studio. This example demonstrates adding a C++ backend to a 3D project created in Qt Design Studio. The example itself consists of an interactive industrial robot arm in a Qt Quick 3D scene. The 2D UI to control the robot arm is implement using Qt Quick Controls.
A QML RSS news reader that uses XmlListModel and XmlListModelRole custom QML types to download XML data, ListModel and ListElement to create a category list, and ListView to display the data.
A configurable stock chart for the NASDAQ-100.
A user interface for a home thermostat, implemented in Qt Quick. It demonstrates how to create responsive applications that scale from large desktop displays to mobile and small embedded displays.
A QML implementation of to do list application that demonstrates how to create application thats looks native on any platform.
Developing Qt Quick Applications#
The following pages show how to develop Qt applications using Qt Creator and Qt Quick. The pages demonstrate various steps such as use cases and introductory material. For more information about Qt Quick Applications and related modules, visit the QML Applications page.
Beginning with QML and Qt Quick
The following tutorials show how a QML-based application can be combined and exteneded with C++ code using the Qt QML module.
Writing advanced QML Extensions with C++
Examples are small applications which show how to implement various Qt Quick features. The examples run on various platforms and are opened from within Qt Creator.
QML Types and Controls
Layouts and Views
Image and Graphics
Keyboard, Focus, and Touch
System and Events
Extending the Scene Graph using native 3D APIs
OpenGL-based rendering as a scene underlay
Redirecting Qt Quick rendering into an OpenGL texture
Redirecting Qt Quick rendering into a Direct 3D texture
Adding Qt Quick scenes in
QQuickWidget - QQuickView Comparison (OpenGL)
Embedding a QQuickView as Native Window