Replies: 1 comment 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
![image](https://private-user-images.githubusercontent.com/60298175/411638282-eee5a48e-aa8a-4720-9c77-342f7f2f5ec9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODYzNjEsIm5iZiI6MTczOTY4NjA2MSwicGF0aCI6Ii82MDI5ODE3NS80MTE2MzgyODItZWVlNWE0OGUtYWE4YS00NzIwLTljNzctMzQyZjdmMmY1ZWM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA2MDc0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwODYxNTU5ZWFjNjM3Mjk0YzQzMjU4NjUyYTNmY2QzZjFkZmU3NmI5Y2IxZTIzMDQ5NzgyZGRlOTlhOGFkMzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hez8LU-Z3HFdKncWAq4g933I6aqm3NoDVKlpTrQbYBM)
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