Hi,

I have created Sample.qml file and have

Qt Code:
  1. import QtQuick 2.0
  2. import QtQuick.Window 2.0
  3.  
  4. Rectangle {
  5. id: root
  6. width: Screen.width
  7. height: Screen.height
  8.  
  9. Rectangle{
  10. id: r1
  11. width: 100
  12. height: 100
  13. x: 200
  14. y: 200
  15. color: "green"
  16. }
  17.  
  18. Rectangle{
  19. id: r2
  20. width: 100
  21. height: 100
  22. x: 400
  23. y: 200
  24. color: "cyan"
  25. visible: false
  26. }
  27. }
To copy to clipboard, switch view to plain text mode 

Here rectangle r1 is visible and r2 is non-visible. I want PropertyAnimation on r1 and change its opacity to 0.01. Then once this animation is ended I want r2 to become visible and separate animation to start on r2 once it is visible.
Can somebody please add necessary code to this. I know this has to be achieved through states and transitions.


Thanks

Manish