import Qt 4.6 Item { id: myItem width: 150 height: 150 Rectangle { x : 40 y : 40 width: 10 height: 10 color: "blue" id: blueBox states : State { name : "bigger" when : rbmr.containsMouse PropertyChanges { target: blueBox width : 70; height : 70 radius : 15 } } transitions : Transition{ NumberAnimation { matchProperties: "width,radius"; duration: 500 } } } Rectangle { x: 100 y : 100 width: 10 height: 10 color: "red" id: redBox MouseRegion { id : rbmr anchors.fill : parent hoverEnabled: true } } }