垂直平移

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

 

posted on 2013-02-23 11:58  小风儿_xf  阅读(188)  评论(0编辑  收藏  举报

导航