使用预设组件
要在用户界面中使用 QML 类型,请通过选择“Components ” > “
”将包含这些类型的 Qt 模块导入到您的项目中。有关更多信息,请参阅“导入模块”。然后,您可以通过将组件从“Components ”拖动到“2D ”或“Navigator ”视图中,来创建这些组件的实例。
要编辑组件实例的外观,请在“2D ”或“Navigator ”视图中选中该实例,并在“Properties ”视图中设置其属性。
有关创建自定义组件的更多信息,请参阅“创建自定义组件”。
组件类型
另请参阅 《操作指南:使用 UI 组件》、《Qt Quick UI 设计》以及《设计Qt Quick UI》。
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.