QML: Overriding a signal handler from other element
Posted
by
user3490458
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user3490458
Published on 2014-06-10T12:44:07Z
Indexed on
2014/06/10
21:47 UTC
Read the original article
Hit count: 264
Is it possible to override an elements action (eg onTriggered() of a Timer) from within the onClick() of a button?
Something like so->
Button {
id: centerBtn
objectName: "button"
onClicked: {
delaytimer.running = true;
delayTimer.onTriggered {}; // override here
}
Timer {
id: delaytimer
interval: 1000
running: false
repeat: false
onTriggered: //something implemented here
}
}
© Ask Ubuntu or respective owner