-
Hello. I was wondering if it was possible to call a callback in a function that is made in the appwindow.slint file.
If that is not possible is there any other way to call multiple callbacks with one press of a button? |
Beta Was this translation helpful? Give feedback.
Answered by
tronical
Jul 15, 2024
Replies: 1 comment 3 replies
-
You can call calculate_num1, calculate_num2, and callback_sym from calculate(). Callbacks are like functions, except that you can change their “destination” at runtime. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A callback is called as if it were a function:
calculate_num(“1234”)
for example