import Qt 4.7

Rectangle {
    id: theRect
    property bool triggerState: false
    property string stateString: ""
    states: State {
        when: triggerState
        PropertyChanges {
            target: theRect
            stateString: "inState"
        }
    }
}
