import QtQuick 1.1 Rectangle { width: 360 height: 360 Rectangle { id : rec color: "blue" } Text { anchors.centerIn: parent text: "Hello World" } MouseArea { anchors.fill: parent onClicked: { Qt.quit(); } } states: [ State { name: "State2" PropertyChanges{ target: rec smooth: true opacity: 1 } } ] }