Hi
This is my code:
Qt Code:
  1. import Qt 4.7
  2.  
  3. Item {
  4.  
  5. width: 180
  6. height: 60
  7. id: root
  8.  
  9. property bool collapsedButton: true
  10. (...)
  11. ParallelAnimation {
  12. running:root.collapsedButton
  13. NumberAnimation { target: backgroundCallapsed; property: "width"; to: 64 ;}
  14. NumberAnimation { target: background; property: "opacity"; to: 0 }
  15. NumberAnimation { target: text; property: "opacity"; to: 0 }
  16.  
  17. }
  18. (...)
To copy to clipboard, switch view to plain text mode 
Thie code does not work, but when I change "root.collapsedButton" form running to "true" this script work