Question: qml how to change state?
Answer: Each state within a component has a unique name , an empty string being the default. To change the current state of an item, set the state property to the name of the state. Non-Item objects may use states through the StateGroup element.