Qt Quick Controls C++ Classes

提供用于从 C++ 设置控件的类。更多

QQuickAttachedPropertyPropagator

传播附加属性的方法

QQuickStyle

允许配置应用程序风格

详细说明

可以使用以下 include 语句将 C++ 类型包含到应用程序中:

#include <QtQuickControls2>

注意: 如果您要使用本模块中的几个类,我们建议您只包含这些特定的类,而不是整个模块。

要链接相应的 C++ 库,请在 qmake 项目文件中添加以下内容:

QT += quickcontrols2

Qt Quick Controls页面包含有关如何使用该模块的信息。

© 2025 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.