Skip to content
Discussion options

You must be logged in to vote

The way to do that in Slint is with callback.
For example, you can put a callback on a global object, and assogn an handler to it.
See https://docs.rs/slint/latest/slint/docs/recipes/index.html#global-callbacks

You can then do something like

clicked => { 
  GlobalLogic.item_was_clicked(item_index, some_other_data);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@darkwyrm
Comment options

Answer selected by darkwyrm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants