使用预设组件
要在用户界面中使用 QML 类型,可通过选择Components >
将包含这些类型的 Qt Qml 模块导入到您的项目中。更多信息,请参阅导入模块。然后,您可以将组件从Components 拖到2D 或Navigator 视图中,创建组件实例。
要编辑组件实例的外观,请在2D 或Navigator 视图中选择该实例,并在Properties 视图中设置其属性。
有关创建自己的组件的更多信息,请参阅创建自定义组件。
组件类型
另请参阅 如何使用用户界面组件,Qt Quick 用户界面设计,以及设计Qt Quick 用户界面。
Copyright © The Qt Company Ltd. and other contributors. 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.