How to implement multiple actions on onClicked [SOLVED]
-
wrote on 29 Apr 2015, 13:20 last edited by sosun
I want to implement multiple actions at once. For instance, we have the following snippet:
MouseArea { onClicked: textField.text = "test" }
I want the following functionality:
MouseArea { onClicked { textField.text = "test" myImage.source = "http//....." } }
Is it possible?
-
wrote on 29 Apr 2015, 13:26 last edited by
Yes but you need to write with a colon**:**
onClicked: { textField.text = "test" myImage.source = "http//....." } }
-
wrote on 29 Apr 2015, 13:29 last edited by
Aah, thanks! I was missing this functionality.
-
wrote on 29 Apr 2015, 14:12 last edited by
Hi,
I can't try now but I think is possible.
You can execute any kind of Javascript code in a slot -
Hi,
I can't try now but I think is possible.
You can execute any kind of Javascript code in a slot
1/5