Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Globals between multiple windows #6877

Open
dorukotiv opened this issue Nov 22, 2024 · 1 comment
Open

Shared Globals between multiple windows #6877

dorukotiv opened this issue Nov 22, 2024 · 1 comment
Labels
a:language-c++ C++ API, codegen, CMake build system (mS,mO) a:language-javascript JavaScript bindings (mF,bS) a:language-rust Rust API and codegen (mO,mS) api Changes or additions to APIs enhancement New feature or request

Comments

@dorukotiv
Copy link

Feature Description

Currently, we have one slint application that has 6 windows and every window has its own global but when these windows have one common state, an instance needs to be stored in every window separately. This creates a problem that once a shared value is changed in Rust, 6 different window needs to update its state. Would be really nice if we can share a global among multiple windows.

Product Impact

We are OTIV, using slint for our Remote Supervision Control solution and we work with multiple windows.

@dorukotiv dorukotiv added enhancement New feature or request need triaging Issue that the owner of the area still need to triage labels Nov 22, 2024
@ogoffart ogoffart added a:language-c++ C++ API, codegen, CMake build system (mS,mO) a:language-rust Rust API and codegen (mO,mS) a:language-javascript JavaScript bindings (mF,bS) api Changes or additions to APIs and removed need triaging Issue that the owner of the area still need to triage labels Nov 26, 2024
@ogoffart
Copy link
Member

As mentioned in #6235 , we need to design an API in Rust/C++ and interpreter to share global. We could create globals before and have a new_with_globals for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-c++ C++ API, codegen, CMake build system (mS,mO) a:language-javascript JavaScript bindings (mF,bS) a:language-rust Rust API and codegen (mO,mS) api Changes or additions to APIs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants