CoordinateAnimation QML Type
用于地理坐标属性的PropertyAnimation 。更多
| Import Statement: | import QtPositioning |
| Inherits: |
属性
详细说明
一个专门的PropertyAnimation ,用于定义两个坐标之间的动画。
默认情况下,坐标的纬度动画方向为两个坐标之间的最短(大地测量)距离。由于 CoordinateAnimation 使用墨卡托地图投影,因此纬度动画总是在 -90 度和 90 度之间。经度动画路径没有限制,可以在东西方向上超过 180 度。
可以设置direction 属性来指定经度动画的方向。
另请参阅 Qt Quick 中的动画和转换。
属性文档
direction : enumeration
该属性表示坐标经度动画的方向。
| 常数 | 说明 |
|---|---|
CoordinateAnimation.Shortest | 经度动画的方向是动画路径最短的方向。这是默认设置。 |
CoordinateAnimation.West | 经度动画总是向西移动,可能会穿过日期线。 |
CoordinateAnimation.East | 经度动画总是向东移动,并可能穿过日期线。 |
from : coordinate
此属性保存动画开始的坐标。
to : coordinate
此属性保存动画结束的坐标。
© 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.