Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Set onClicked function based upon state

$
0
0
You should be able to modify the signal handler from JS like this:     State {         name: "one"         StateChangeScript {             script: {                 area.clicked.disconnect( handleOne );                 area.clicked.connect( handleTwo );             }         } But note: if you add a handler to clicked while this event is currently handled, the newly added handler will be called immediatly.

Viewing all articles
Browse latest Browse all 4972

Trending Articles