Qt Quick Templates 2 QML Types | Qt Quick Controls 2 5.7

Qt 5.7 | Qt Quick Controls 2 | Qt Quick Templates 2 QML Types

Qt 5.7.1 Reference Documentation

# 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

AbstractButton | Base type of all button controls
ApplicationWindow | Provides a top-level application window
BusyIndicator | Indicates activity while content is being loaded
Button | A push-button control that can be clicked by the user
ButtonGroup | A mutually-exclusive group of checkable controls
CheckBox | An option button that can be checked or unchecked
CheckDelegate | An item delegate that can be checked or unchecked
ComboBox | A combined button and popup list taking minimal space
Container | A container control base type
Control | Base type of user interface controls
Dial | A circular dial that is rotated to set a value
Drawer | Provides a swipe-based side panel
Frame | A logical group of controls within a visual frame
GroupBox | A logical group of controls within a titled visual frame
ItemDelegate | A standard view item that can be used in various views and controls
Label | A text label with inherited styling and font
Menu | A menu control that can be used as a context menu or popup menu
MenuItem | A menu item within a Menu
Page | A control that makes it convenient to add a header and footer to a page
PageIndicator | Indicates the currently active page
Pane | Provides a background matching with the application style and theme
Popup | Base type of popup-like user interface controls
ProgressBar | Indicates the progress of an operation
RadioButton | An option button that can be toggled on or off
RadioDelegate | An item delegate that can be checked or unchecked
RangeSlider | A slider control used to select a range of values
ScrollBar | An interactive scroll bar control
ScrollIndicator | A non-interactive scroll indicator control
Slider | Selects a value by sliding a handle along a track
SpinBox | A spinbox control that allows the user to select from a set of preset values
StackView | Provides a stack-based navigation model
SwipeDelegate | A swipable item delegate
SwipeView | Enables the user to navigate pages by swiping sideways
Switch | An option button that can be toggled on or off
SwitchDelegate | An item delegate that can be toggled on or off
TabBar | A bar with icons allowing to switch between different views or subtasks
TabButton | A tab button control that can be found on a TabBar
TextArea | A multi line text input control
TextField | A single line text input control
ToolBar | A container with context-sensitive controls
ToolButton | A button with a layout suitable for a ToolBar
ToolTip | Provides tool tips for any control
Tumbler | A spinnable wheel of items that can be selected

## Related Information

- Qt Quick Controls 2 QML Types