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.
The QML types can be imported into your application using the following import statement in your
import QtQuick.Controls 2.15
The C++ classes can be included into your application using the following include statement:
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.
When building from source, ensure that the Qt Graphical Effects module is also built, as Qt Quick Controls requires it.
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.
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:
- High-DPI Support
- Using File Selectors
- Configuration File
- Environment Variables
- Differences with Qt Quick Controls 1
- Chat Tutorial
- Text Editor
- Wearable Demo
- Automotive Example
- Music Player Example
- All Examples
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.