States and transitions in Qt Quick