Initialising properties with Rust #6995
-
Hi friends! I want to initialise certain parameters of my app with values I will store in a JSON file and I want to know the best way to do so. I want the app to maintain the same layout (position, size, etc) of certain components as when the user last closed it. Consider this minimal example:
I've tried using the
How would you go about setting Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you can also call |
Beta Was this translation helpful? Give feedback.
Because
FooWindow
doesn't have afoo_width
property, onlyFoo
has. You will need to expose this property on your exported component (and forward it on the Slint side, if needed). Or use the global and bind likewidth: FooGlobal.foo_width
instead.