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.
These types should be used when you want to implement a control from scratch, rather than customizing an existing control. This is most commonly the case when creating a custom style.
The QML types can be imported using the following import statement in your .qml file:
import QtQuick.Templates as T
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
| Abstract base type providing functionality common to buttons | |
| Abstract user interface action | |
| Groups actions together | |
| Styled top-level window with support for a header and footer | |
| Indicates background activity, for example, while content is being loaded | |
| Push-button that can be clicked to perform a command or answer a question | |
| Mutually-exclusive group of checkable buttons | |
| A calendar namespace | |
| A calendar model | |
| Check button that can be toggled on or off | |
| Item delegate with a check indicator that can be toggled on or off | |
| Combined button and popup list for selecting options | |
| Abstract base type providing functionality common to containers | |
| Attached type provides a way to open a context menu in a platform-appropriate manner | |
| Abstract base type providing functionality common to all controls | |
| A row of names for the days in a week | |
| Check button that triggers when held down long enough | |
| Circular dial that is rotated to set a value | |
| Popup dialog with standard buttons and a title, used for short-term interaction with the user | |
| A button box used in dialogs | |
| Side panel that can be opened and closed using a swipe gesture | |
| Visual frame for a logical group of controls | |
| Visual frame and title for a logical group of controls | |
| Provides a horizontal header view to accompany a TableView | |
| Basic item delegate that can be used in various views and controls | |
| Styled text label with inherited font | |
| Popup that can be used as a context menu or popup menu | |
| Provides a window menu bar | |
| Presents a drop-down menu within a MenuBar | |
| Presents an item within a Menu | |
| Separates a group of items in a menu from adjacent items | |
| A grid of days for a calendar month | |
| A window overlay for popups | |
| Styled page control with support for a header and footer | |
| 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 | |
| Exclusive radio button that can be toggled on or off | |
| Exclusive item delegate with a radio indicator that can be toggled on or off | |
| Used to select a range of values by sliding two handles along a track | |
| A push-button control with rounded corners that can be clicked by the user | |
| Vertical or horizontal interactive scroll bar | |
| Vertical or horizontal non-interactive scroll indicator | |
| Scrollable view | |
| Used to select table cells inside a TableView | |
| Used to select a value by sliding a handle along a track | |
| Allows the user to select from a set of preset values | |
| Provides attached properties for SplitView handles | |
| Lays out items with a draggable splitter between each item | |
| Provides a stack-based navigation model | |
| Swipable item delegate | |
| Enables the user to navigate pages by swiping sideways | |
| Button that can be toggled on or off | |
| Item delegate with a switch indicator that can be toggled on or off | |
| Allows the user to switch between different views or subtasks | |
| Button with a look suitable for a TabBar | |
| A delegate that can be assigned to a TableView | |
| Multi-line text input area | |
| Single-line text input field | |
| Container for context-sensitive controls | |
| Button with a look suitable for a ToolBar | |
| Separates a group of items in a toolbar from adjacent items | |
| Provides tool tips for any control | |
| A delegate that can be assigned to a TreeView | |
| Spinnable wheel of items that can be selected | |
| Offers a vertical header view to accompany a TableView | |
| A column of week numbers |