Qt Quick 变换类型

变换会应用于子层次结构,也会变换鼠标和触摸输入,因此事件处理程序中的坐标会按照预期的方式运行。

项目属性

Item 包含大量方便使用的属性,涵盖最常见的变换类型。

  • x 和 ;转换项目。y
  • scale对项目应用统一的缩放因子。
  • rotation对项目进行逆时针旋转。
  • transformOrigin与缩放和旋转结合使用可改变变换的原点。

变换列表

除了方便使用的类型外,还可以使用ScaleRotationTranslate 对象的列表来定义更全面的变换,该列表位于Itemtransform 属性中。

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