Animations QML changements de propriétés visibles

J'ai envie d'une animation à peindre lorsqu'un élément est visible (qui doit apparaître en douceur, pas du tout du tout)

J'ai essayé ce

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"
    }
}

Mais la selectIconRow apparaît toujours immédiatement

Comment puis-je utiliser une animation?

source d'informationauteur marmistrz | 2012-09-08