-
I'm using Slint with C++, and i created a global object inside Slint, when i see the generated header, the |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Sep 30, 2024
Replies: 1 comment 3 replies
-
You can access each global separately with the global() function: https://releases.slint.dev/1.8.0/docs/cpp/generated_code.html#global-singletons |
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
Right, you need to re-export the globals from the main file.
Globals that are not exported are condiered as internal and their property might be optimized away.