垂直平移
import QtQuick 2.0 Rectangle { width: 1000; height: 800 Image { id: front source: "1.png" Image { id: back source: "2.png" SequentialAnimation on y { id: animation2 running:false NumberAnimation { from: 300 ;to: 800; duration: 1500 } } } MouseArea { anchors.fill: parent onClicked:animation2.running=true } } }