-
I am working through trying to understand options for getting messages from sub-components to my Rust code. I got one option by using callbacks. Is the this the slint way of doing this? Approach:
Note: I am in POC stage and have limited knowledge of rust and slint so may be way off base with what I actually need for my application. main.rs
main.slint:
function-button.slint
|
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Apr 14, 2025
Replies: 1 comment 1 reply
-
If you add ui.global::<Logic>().on_function_button_clicked(|s|{ ... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
john-
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you add
export { Logic }
from your main.slint, you can use