我希望在元素变得可见时绘制动画(应该看起来平滑,而不是整体)
我试过这个
states: State
{
name: "iconOff"
when: iconOnSwitch.checked == false
PropertyChanges { target: selectIconRow; visible: false }
}
transitions: Transition
{
reversible: true
from: ""
to: "iconOff"
PropertyAnimation
{
properties: "x,y,visible"
easing.type: Easing.InOutQuad
from: selectIconRow
property: "visible"
}
}
但是 selectIconRow 仍然会立即出现
我怎样才能使用这样的动画?