在此页面

注释设计

您可以将设计作为 QML 文件提交,以便审核或进一步开发。您可以为设计添加注释,以便为审核人员或开发人员提供更多相关信息。您可以添加适用于整个文件的全局注释,也可以注释单个组件。

注释由注释名称和一个或多个注释组成。注释有标题、作者和注释文本。

二维视图中的注释

保存文件时,注释会保存在 QML 文件的末尾。它们不会以任何方式影响 QML 性能。

注释组件

为组件添加注释

  1. Navigator2D 视图中选择要注释的组件。
  2. Properties 中,选择Add Annotation 打开Annotation Editor

    注释编辑器

    Selected component 显示组件的 ID。

  3. Name 中,输入描述组件的自由格式文本。
  4. Title 中,输入要在此注释的选项卡中显示的文本。
  5. Author 中,输入作者姓名。
  6. Text 中,输入注释文本。
  7. 选择OK

要添加更多关于该组件的评论,请选择加号按钮 (Add Comment)。

要删除活动注释,请选择减号按钮 (Remove Comment)。要删除注释,请右键单击注释图标,然后选择Remove Annotation

要以表格格式查看注释,请选择Table view

要编辑注释,请在组件的上下文菜单中选择Edit Annotation

添加全局注释

添加或编辑全局注释:

  • 选择顶部工具栏上的注释按钮
  • 转到Edit 并选择Edit Global Annotations

全局注释有一个附加的状态属性,用于显示您是否仍在进行设计、是否已提交审查或是否可视为已完成。

要设置状态,请选择Add Status

另请参阅 如何设计Qt Quick UIQt 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.