1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import Qt 4.7 Rectangle { width: 400 height: 400 Rectangle { objectName: "innerRect" height: 100; width: 100; color: "green" property real targetX: 100 x: targetX Behavior on x { NumberAnimation {} } } }