Created
July 3, 2013 18:44
-
-
Save ultramcu/5921553 to your computer and use it in GitHub Desktop.
Element Image and Animation part I (NumberAnimation)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Element Image and Animation part I (NumberAnimation) | |
Author : MaIII Themd | |
Website : http://miiniq.blogspot.com | |
FB : http://www.facebook.com/PiShared | |
Env : Qt 5.0.2 clang 64 bit OSX 10.8.4 | |
*/ | |
import QtQuick 2.0 | |
Rectangle { | |
id : rec_main; | |
width: 750 | |
height: 400 | |
color: "pink" | |
Image { | |
id: img | |
x:0;y:0; | |
scale: 0.8; | |
source: "./roter_mini.png" | |
NumberAnimation on x { | |
from: 0; to: 480 | |
duration: 1000 | |
} | |
NumberAnimation on scale { | |
from: 0.8; to: 0.2 | |
duration: 1000 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment