Qt Quick Controls 2 QML Types

Qt Quick Controls 2 provides QML types for creating user interfaces. These QML types work in conjunction with Qt Quick and Qt Quick Layouts.

Qt Quick Controls 2 QML types can be imported into your application using the following import statement in your .qml file:


  import QtQuick.Controls 2.0

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

For more information on the Qt Quick Controls 2 module, see the Qt Quick Controls 2 module documentation.