マスクされたレイヤーを変換

Figmaでは、マスクによってオブジェクトの一部が表示されたり非表示になったりします。マスク処理を行っても、マスクされたレイヤー自体は変更されず、その中のコンテンツが削除されることもありません。

QMLはマスクをサポートしていません。デフォルトでは、プラグインはマスクを適用し、マスクされたレイヤーをアセットに変換し、それらに対してQMLのImage のインスタンスを作成します。

デザインをコードに変換する際にマスクを適用したくないが、デザイン上ではマスクを残しておきたい場合は、マスクの適用を無効にすることができます。

コード変換時のマスク適用を無効にするには:

  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.