-
I'm still new to figuring all this out, so pardon me if this is ridiculously simple to do. I have a ListView and a TextEdit such that I'd like to be able to click on an item in the list, have it call some backend Rust code to load text from a database, and drop it into the TextEdit. I've looked through the repo and the documentation and can't figure out where to begin to get this working. How do I do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The way to do that in Slint is with callback. You can then do something like
|
Beta Was this translation helpful? Give feedback.
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