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 了解更多细节。
可以使用以下 import 语句导入应用程序，在
import QtQuick.Controls 2.12
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 2 .
当从源代码构建时，确保 Qt Graphical Effects module is also built, as Qt Quick Controls 2 requires it.
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, until Qt 5.12, where the import versions match Qt's minor version. The experimental Qt Labs modules use import version 1.0.
Furthermore Qt Quick Controls 2 potentially contains third party modules under following permissive licenses: