Replies: 1 comment 4 replies
-
Two globals shouldn't be a problem. Maybe there is a bug in Slint. Would you be able to share your code so i can try to reproduce? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! At the moment, I'm working on a personal project with Slint and C++20. I have some problems with
global
s. In the project, I’m trying to split the app into pages and widgets. Here’s what the project structure looks like:I defined two globals in different files (
calendar.slint
andclient_info.slint
) and tried toexport
them in mymainwindow.slint
. It works when I export only one global, so I can use it on the C++ side, but when I try to use both, I get a segmentation fault when accessing them from C++ (even though the code compiles without errors).I tried to debug this, but I found that:

So, I have a few questions:
export
in order to access these globals from the C++ side?Beta Was this translation helpful? Give feedback.
All reactions