Qt Quick Controls C++ Classes
提供了用于从 C++ 设置控件的类。更多内容...
类
传播关联属性的方法 | |
允许配置应用程序样式 |
详细说明
可通过以下 include 语句将 C++ 类型引入您的应用程序:
#include <QtQuickControls2>注意:如果您仅 使用该模块中的少数几个类,建议仅包含这些特定类,而非整个模块。
要链接相应的 C++ 库,请在您的 qmake 项目文件中添加以下内容:
QT += quickcontrols2该 Qt Quick Controls 页面包含有关如何使用该模块的信息。
© 2026 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.