Comments (3)
Maybe what we want is not property aliases, but two ways binding.
For example , it could look like:
LineEdit {
text <=> settings.first_name;
}
from slint.
You're right, two-way bindings address the specific issue I'm facing as well as a few others. Just thinking out loud:
-
If two properties are supposed to be bound together, perhaps the property handle of one property could point to the bound property. Any get() will fetch from the other property, any set() and set_binding() will forward. Not sure yet though how to indicate that, since we use both free bits (lock and binding bit). Perhaps one more binding allocation.
-
If the compiler sees a two-way binding between two properties where at least one is declared in
.60
itself, then it could eliminate one in favour of the other and adjust PropertyReferences. There are probably a few combinations how the compiler could treat this in terms of optimisations.
from slint.
both could work i think. We would need to have the property handle refcounted, but that's doable.
from slint.
Related Issues (20)
- Unreadable Slint snippets with ayu in docs
- Animations stop when resizing or moving windows HOT 4
- I encountered a failure building wasm when using 'skia' renderer. HOT 6
- flatpak zed and vscode report `slint::include_modules!();` rust-analyzer: failed to load file `UNRESOLVED_ENV_VAR` HOT 7
- LSP: diagnostics from dependencies are not refreshed when something changes
- LSP: race condition with diagnostics from the preview HOT 4
- resource embedding eats too much memory (c++) HOT 6
- Separate the Zephyr CI actions based on the Rust toolchain they require
- Slint node walk-through link is a dead link HOT 1
- Float-to-string conversion while controlling decimal place count HOT 3
- Every Alt+Tab to window moves focus HOT 3
- quickstart/memory_tile: wrong @image-url for the Rust case HOT 2
- quickstart/polishing_the_tile: introduces the ui/appwindow.slint file without explanation (Rust case)
- panic when pressing Tab on a rolled-down ComboBox HOT 1
- Python: Expose Slint enums
- Issue with DatePickerPopup When using LineEdit Callback HOT 2
- Broken todo-mvc example HOT 1
- placeholder issue for images
- How to request permissions on Android with Rust ? HOT 1
- Using tokio::time::sleep() in a future passed to spawn_local seems to hang HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.