Qt Quick Controls 2

Qt Quick Controls 2 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 2 comes with a selection customizable styles. See Styling Qt Quick Controls 2 for more details.

Default Material Universal
Default Material Universal

Prerequisites

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


  import QtQuick.Controls 2.2

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 2.

Versions

Qt Quick Controls 2.0 was introduced in Qt 5.7. Subsequent minor Qt releases increment the import version of the Qt Quick Controls 2 modules by one. The experimental Qt Labs modules use import version 1.0.

Important Concepts in Qt Quick Controls 2

Reference

Examples