Calling rust function from slint #7083
Answered
by
Vadoola
realroot2185
asked this question in
Q&A
-
In appwindow.slint I have a component from another slint file which again as a component from another slint file. Since the component is not the main I am not sure to how send it to appwindow.slint and use some handler. Not sure what's the best method here. |
Beta Was this translation helpful? Give feedback.
Answered by
Vadoola
Dec 15, 2024
Replies: 1 comment 8 replies
-
What I did is forward the callback to the root component. I think another solution is using a global singleton. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You shouldn't need to put it all in one module here is the docs that includes re-exporting: https://releases.slint.dev/1.0.1/docs/slint/src/reference/modules
It looks like in my example above I forgot to out braces around Logic.
It should be
`import { Logic } from "global.slint"
Export {Logic}`