Qt Quick Controls

Qt Quick Controls provides a set of controls that can be used to build complete interfaces in Qt Quick. The module was introduced in Qt 5.7.

Qt Quick Controls comes with a selection customizable styles. See Styling Qt Quick Controls for more details.

Prerequisites

The QML types can be imported into your application using the following import statement in your .qml file:

 import QtQuick.Controls 2.15

The C++ classes can be included into your application using the following include statement:

 #include <QtQuickControls2>

To link against the corresponding C++ libraries, add the following to your qmake project file:

 QT += quickcontrols2

For more details, see Getting Started with Qt Quick Controls.

Building From Source

When building from source, ensure that the Qt Graphical Effects module is also built, as Qt Quick Controls requires it.

The Qt Image Formats module is recommended, but not required. It provides support for the .webp format used by the Imagine style.

Versions

Qt Quick Controls.0 was introduced in Qt 5.7. Subsequent minor Qt releases increment the import version of the Qt Quick Controls modules by one, until Qt 5.12, where the import versions match Qt's minor version. The experimental Qt Labs modules use import version 1.0.

QtQtQuickQtQuick.Controls,
QtQuick.Controls.Material,
QtQuick.Controls.Universal,
QtQuick.Templates
Qt.labs.calendar,
Qt.labs.platform
5.72.72.01.0
5.82.82.11.0
5.92.92.21.0
5.102.102.31.0
5.112.112.41.0
5.122.122.121.0
............

License and Attributions

Qt Quick Controls is available under commercial licenses from The Qt Company. In addition, it is available under the GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.

Furthermore Qt Quick Controls potentially contains third party modules under following permissive licenses:

Topics

Reference

Examples