Qt Quick Templates 2 QML Types
The Qt Quick Templates 2 module provides a set of non-visual templates that can be used to build user interface controls in QML using Qt Quick.
The QML types can be imported using the following import statement in your .qml
file:
import QtQuick.Templates 2.0 as T
For the sake of clarity, there is a one-to-one mapping between the types provided by the QtQuick.Templates
and QtQuick.Controls
imports. For every type available in the QtQuick.Controls
import, a non-visual template type by the same name exists in the QtQuick.Templates
import.
Note: It is recommended to use a namespace for the templates import to avoid overlap with the types provided by the QtQuick.Controls
import.
QML Types
Base type of all button controls | |
Provides a top-level application window | |
Indicates activity while content is being loaded | |
A push-button control that can be clicked by the user | |
A mutually-exclusive group of checkable controls | |
An option button that can be checked or unchecked | |
An item delegate that can be checked or unchecked | |
A combined button and popup list taking minimal space | |
A container control base type | |
Base type of user interface controls | |
A circular dial that is rotated to set a value | |
Provides a swipe-based side panel | |
A logical group of controls within a visual frame | |
A logical group of controls within a titled visual frame | |
A standard view item that can be used in various views and controls | |
A text label with inherited styling and font | |
A menu control that can be used as a context menu or popup menu | |
A menu item within a Menu | |
A control that makes it convenient to add a header and footer to a page | |
Indicates the currently active page | |
Provides a background matching with the application style and theme | |
Base type of popup-like user interface controls | |
Indicates the progress of an operation | |
An option button that can be toggled on or off | |
An item delegate that can be checked or unchecked | |
A slider control used to select a range of values | |
An interactive scroll bar control | |
A non-interactive scroll indicator control | |
Selects a value by sliding a handle along a track | |
A spinbox control that allows the user to select from a set of preset values | |
Provides a stack-based navigation model | |
A swipable item delegate | |
Enables the user to navigate pages by swiping sideways | |
An option button that can be toggled on or off | |
An item delegate that can be toggled on or off | |
A bar with icons allowing to switch between different views or subtasks | |
A tab button control that can be found on a TabBar | |
A multi line text input control | |
A single line text input control | |
A container with context-sensitive controls | |
A button with a layout suitable for a ToolBar | |
Provides tool tips for any control | |
A spinnable wheel of items that can be selected |