本页内容

修复转换问题

Figma to Qt 将 Figma 设计转换为 QML 代码。某些 Figma 图层的属性在 QML 中没有对应项。错误和警告信息会说明这些差异,以及Figma to Qt 为生成性能更佳的 QML 代码所采取的步骤。

要修复转换问题:

  1. 在插件中,转至“问题 ”(Issues )。

    该插件中存在的转换问题列表。

    插件中列出了转换问题。

  2. 点击消息中的按钮即可对该问题应用修复方案。通常,这会更改 Figma 中的图层,以便插件将其转换为最合适的 QML 代码。

您可以一次选择多个问题进行自动修复,或者选择“定位图标 ”(Locate )跳转至设计中的相应图层,逐一修复问题。

若要按图层名称或问题标题查看问题,请选择“网格图标 ”。

选择“预览 ”(Preview )可在实时预览中查看修复结果。

若要撤销更改,请在 Figma 中按Ctrl + z(或 macOS 上的Cmd + z)。

修复选中的问题

要一次性修复多个问题:

  1. 在列表中选择问题。
  2. 选择“Fix selected ”。

忽略问题

若要将问题从列表中隐藏:

  1. 在列表中选择问题。
  2. 选择“Ignore ”或“Ignore selected ”。

恢复被忽略的问题

要恢复被忽略的问题:

  1. 在插件中,前往“设置 ”(Settings )>“General ”。
  2. 选择“Restore issues ”。

    在插件的“设置”页面中恢复被忽略的问题。

    在插件的“常规”页面中恢复被忽略的问题。

“Issues ”页面将再次显示所有现有问题。

另请参阅 “转换设计”、“转换问题”、“将图层渲染为图像”和“预览已转换的设计”。

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