-
In the 7guis/cells.slint example, the property
is defined representing the grid of cells.
called in Is there a way to do this without knowing the implicit defined name of the set_ function, I was hoping for something like
but I can't get over type problems with I try to use Slint through a rust C-api library where those implicit |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
What exact error do you get when using Note that the Model needs to be backed by a |
Beta Was this translation helpful? Give feedback.
-
My code is more or less copy/pasted from the modified code
The compiler gives me the following error when I try to
=>
I have read your hint, but I need some time to think about it and what it means in code (still very new to rust and Slint). For now it sounds as that I am not completely wrong with my attempt. Wish you a Happy New Year ! |
Beta Was this translation helpful? Give feedback.
The Value::Model expect a
dyn Model<Value>
So like so: (untested)
Same for the inner mode: