Xor.qml 544 B

12345678910111213141516171819
  1. import Qt 4.7
  2. Image {
  3. width: 80
  4. height: 80
  5. source: "x.png"
  6. property int index: -1
  7. x: Math.random(-100);
  8. y: Math.random(-100);
  9. opacity: 0
  10. Behavior on x { PropertyAnimation { duration: 500; easing.type: Easing.InOutQuad } }
  11. Behavior on y { PropertyAnimation { duration: 500; easing.type: Easing.InOutQuad } }
  12. Behavior on opacity { PropertyAnimation { duration: 500; } }
  13. //Behavior on width { PropertyAnimation { duration: 500; } }
  14. //Behavior on height { PropertyAnimation { duration: 500; } }
  15. }