How to implement multiple actions on onClicked [SOLVED]
-
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?
-
Hi,
I can't try now but I think is possible.
You can execute any kind of Javascript code in a slot -
@sosun, seems you've still not marked it. It works for me in Qt 6, and I almost missed it when I stumbled upon this seemingly-unsolved thread.
-
@sosun, seems you've still not marked it. It works for me in Qt 6, and I almost missed it when I stumbled upon this seemingly-unsolved thread.
This thread is 10 years old and was created with the previous version of the forum software where there was no concept yet of "solved state" hence the
[solved]in the title which was how threads were marked at that time.[edit: fixed the resolution]
-
S SGaist marked this topic as a question on
-
S SGaist has marked this topic as solved on