QML-Animationen sichtbar-Eigenschaft ändert

Möchte ich eine animation, gemalt zu werden, wenn ein element sichtbar wird (Sie sollte glatt erscheinen, nicht die ganze)

Habe ich versucht, dieses

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

Aber die selectIconRow noch erscheint sofort

Wie kann ich eine solche animation?

InformationsquelleAutor marmistrz | 2012-09-08

Schreibe einen Kommentar