0
我想停止动画这样的动画:停止在非root动画节点
Behavior on x {
NumberAnimation {
id: animationElement
duration: 100
}
}
...
if (something)
{
animationElement.stop()
}
但是这个代码给我的错误,即停止()不能在非root动画节点使用。 这可能是从外面停止动画?