转换蒙版图层

在 Figma 中,蒙版用于显示或隐藏对象的某些区域。蒙版操作不会更改被蒙版覆盖的图层,也不会从这些图层中移除内容。

QML 不支持蒙版。默认情况下,该插件会应用蒙版,将蒙版图层转换为资源,并为其创建 QMLImage 的实例。

如果您在将设计转换为代码时不想应用蒙版,但仍希望在设计中保留蒙版,可以关闭蒙版应用功能。

要在转换代码时关闭蒙版应用功能:

  1. 在插件中,转到“设置 ”(Settings )>“Code ”。

    在“设置”页面上的“代码”设置中启用掩码。

    在插件的“设置”页面中,于“代码”设置中启用蒙版。

  2. 关闭“Enable masks ”。
  3. 选择“预览 ”(Preview )以查看结果。

另请参阅 “下载转换后的设计”和“预览转换后的设计”。

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