问题再详细描述一下吧:
就像下面的代码那样:
Image
{
id: animateCapsule
height: parent.width / 10
width: height / 2
property int xFrom: parent.width + height * 8
property int xTo: -height * 2
x: xFrom
y: parent.height * 0.45
source: "../../images/capsule.png"
RotationAnimation on rotation
{
from: 0
to: 360
loops: Animation.Infinite
duration: 2000
}
//@ 桌面:请注意使用这一段代码
Behavior on x
{
NumberAnimation
{
from: animateCapsule.xFrom
to: animateCapsule.xTo
loops: Animation.Infinite
duration: 2000
}
}
//@ 安卓:请注意使用这一段代码
// NumberAnimation on x
// {
// from: animateCapsule.xFrom
// to: animateCapsule.xTo
// loops: Animation.Infinite
// duration: 2000
// }
}
Qt的Bug已提