Button { text: holding ? "Run" : "Hold" onClicked: holding = !holding }