import QtQuick 1.1 Rectangle { id: root width: 360 height: 360 MouseArea { id: mousearea1 anchors.fill: parent onClicked: { Qt.quit(); } Text { id: text1 x: 153 y: 234 text: qsTr("Testing") font.pixelSize: 12 } } Text { id: text anchors.centerIn: parent } states: [ State { name: "State2" PropertyChanges { target: mousearea1 width: 140 height: 76 } } ] }