Storing data in custom struct and bind it to view #3959
Answered
by
ogoffart
PerfectlyFineCode
asked this question in
Q&A
-
How would I actually store data from a custom struct and then bind it to the view? I'm so used to XAML languages with bindings, models and viewmodels (MVVM). |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Nov 20, 2023
Replies: 1 comment
-
Not sure exactly what you have in mind. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PerfectlyFineCode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure exactly what you have in mind.
The Slint compiler needs to know about all the types, so you should create
struct
in the slint! macro or in .slint files.