水平平移

import QtQuick 2.0


Rectangle {
     width: 1000; height: 500
     Image {
         id: front
         source: "1.png"
         Image {
             id: back
             source: "2.png"
         SequentialAnimation on x {
                                      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:55  小风儿_xf  阅读(203)  评论(0编辑  收藏  举报

导航