Qt Quick Controls 2 Reference Documentation

Qt Quick Controls 2 - Chat Tutorial

Chapter 1: Setting Up

main.cpp

main.qml

The Project File

Chapter 2: Lists

Sizing and Positioning

Model

Delegate

Chapter 3: Navigation

StackView

Chapter 4: Models

QSqlQueryModel

QSqlTableModel

Connecting to the Database and Registering Types With QML

Using the Models in QML

Chapter 5: Styling

Summary

Qt Quick Controls 2 - Gallery

Running the Example

DayOfWeekRow

MonthGrid

WeekNumberColumn

Calendar

CalendarModel

DayOfWeekRow

MonthGrid

WeekNumberColumn

Qt Labs Calendar

QML Types

Related Information

Button Controls

Button Control

CheckBox Control

RadioButton Control

Switch Control

ToolButton Control

Related Information

Container Controls

ApplicationWindow Control

Frame Control

GroupBox Control

Page Control

Pane Control

StackView Control

SwipeView Control

TabBar Control

ToolBar Control

Customizing Qt Quick Controls 2

Customizing a Control

Creating a Custom Style

Definition of a Style

Style-specific C++ Extensions

Attached properties

Customization Reference

Customizing BusyIndicator

Customizing Button

Customizing CheckBox

Customizing CheckDelegate

Customizing ComboBox

Customizing Dial

Customizing Drawer

Customizing Frame

Customizing GroupBox

Customizing ItemDelegate

Customizing Label

Customizing Menu

Customizing MenuItem

Customizing PageIndicator

Customizing Pane

Customizing Popup

Customizing ProgressBar

Customizing RadioButton

Customizing RadioDelegate

Customizing RangeSlider

Customizing ScrollBar

Customizing ScrollIndicator

Customizing Slider

Customizing SpinBox

Customizing StackView

Customizing SwipeDelegate

Customizing SwipeView

Customizing Switch

Customizing SwitchDelegate

Customizing TabBar

Customizing TabButton

Customizing TextArea

Customizing TextField

Customizing ToolBar

Customizing ToolButton

Customizing ToolTip

Customizing Tumbler

Default Style

Related Information

Delegate Controls

ItemDelegate Control

RadioDelegate Control

SwipeDelegate Control

SwitchDelegate Control

Related Information

Deploying Qt Quick Controls 2 Applications

Deploying an Application with Several Styles

Static Builds

Differences between Qt Quick Controls

C++ and QML

Styles

Modularity and Simplicity

Feature Comparison Table

Porting Qt Quick Controls Code

Preparing for Migration

Type Comparison Table

Related Information

Using File Selectors with Qt Quick Controls 2

Related Information

Getting Started with Qt Quick Controls 2

Setting Up Controls from C++

Using C++ Data From QML

Qt Quick Controls 2 Guidelines

Related Information

High-DPI Support in Qt Quick Controls 2

Related Information

Qt Quick Controls 2

Prerequisites

Important Concepts in Qt Quick Controls 2

Reference

Examples

Related Modules

Indicator Controls

BusyIndicator Control

PageIndicator Control

ScrollBar Control

ScrollIndicator Control

Related Information

Input Controls

ComboBox Control

Dial Control

TextArea Control

TextField Control

Slider Control

RangeSlider Control

Tumbler Control

Related Information

Material Style

Attached Properties

Attached Methods

Detailed Description

Customization

Environment Variables

Dependency

Pre-defined Material Colors

Pre-defined Shades

Attached Property Documentation

Attached Method Documentation

Related Information

Menu Controls

Menu Control

Navigation Controls

StackView Control

SwipeView Control

TabBar

TabButton Control

Popup Controls

Drawer Control

Menu Control

Popup Control

ToolTip Control

Related Information

Styling Qt Quick Controls 2

Using Styles in Qt Quick Controls 2

Using QQuickStyle in C++

Command line argument

Environment variable

Configuration file

Related Information

Universal Style

Attached Properties

Attached Methods

Detailed Description

Customization

Environment Variables

Dependency

Pre-defined Universal Colors

Attached Property Documentation

Attached Method Documentation

Related Information

Qt Quick Templates 2

Related Information

AbstractButton

ApplicationWindow

BusyIndicator

Button

ButtonGroup

CheckBox

CheckDelegate

ComboBox

Container

Using Containers

Implementing Containers

Control

Control Layout

Event Handling

Dial

Drawer

Frame

GroupBox

Checkable GroupBox

ItemDelegate

Label

Menu

MenuItem

Page

PageIndicator

Pane

Content Sizing

Popup

ProgressBar

RadioButton

RadioDelegate

RangeSlider

ScrollBar

ScrollIndicator

Slider

SpinBox

Custom Values

StackView

Using StackView in an Application

Basic Navigation

Deep Linking

Finding Items

Transitions

SwipeDelegate

SwipeView

Switch

SwitchDelegate

TabBar

Resizing Tabs

Flickable Tabs

TabButton

TextArea

TextField

ToolBar

ToolButton

ToolTip

Delay and Timeout

Custom Tool Tips

Tumbler

Non-wrapping Tumbler

Qt Quick Controls 2 Examples

Qt Quick Controls 2 C++ Classes

Qt Labs Calendar QML Types

QML Types

Related Information

Qt Quick Controls 2 QML Types

QML Types

Related Information

Qt Quick Templates 2 QML Types

QML Types

Related Information