このページの内容

Qt Quick 変形の種類

トランスフォームは子階層に適用されるほか、マウスやタッチ入力にも反映されるため、イベントハンドラ内の座標は期待どおりに動作します。

アイテムのプロパティ

Item には、最も一般的な変換タイプを網羅した、便利なプロパティが数多く用意されています。

  • x およびy; アイテムを平行移動します。
  • scale; アイテムに均一な拡大縮小係数を適用します。
  • rotation; アイテムを反時計回りに回転させます。; スケールと回転を組み合わせて、変換の原点を変更するために使用します。
  • transformOrigin; スケールや回転と組み合わせて使用し、変換の原点を変更します。

変換リスト

便利型に加えて、Scale 、Rotation 、およびTranslate オブジェクトのリストを、Item のtransform プロパティに指定することで、より包括的な変換を定義することができます。

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