-
I'm still learning Rust and Slint, I can set a array to slint, but get array from slint. how to covnert ModelRc(dyn Model) to array(vec) effectively. appreciate it!! `export component AppWindow inherits Window {
`fn main() -> Result<(), slint::PlatformError> {
} |
Beta Was this translation helpful? Give feedback.
Answered by
tronical
May 16, 2024
Replies: 1 comment 3 replies
-
I think that might work is this: output_states.as_any().downcast_ref::<slint::VecModel<bool>>().unwrap() |
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
After the
downcast_ref()
call you have aVecModel
reference. Here's a self-contained example: