Closed ChronosWS closed 2 months ago
Possibly related to https://github.com/slint-ui/slint/discussions/3108, but I think this is a legit bug worthy of tracking as an issue, not just a discussion item.
This is unfortunately not easy right now. But this is a duplicate of https://github.com/slint-ui/slint/issues/814 so marking it as such. Thanks anyway for the bug report.
Windows 11/Rust 1.73/Slint 1.2.2
Given a component which has the following properties and children:
If in code I update
profile
with a newServerProfile
, thetext
in theText
element will change, but thetext
in theLineEdit
element will not. Even if I create a separatein-out property<string> name;
and create a two-way binding fromLineEdit.text
to it and set thename
property in code, the value ofLineEdit.text
remains unchanged.Expected behavior:
LineEdit.text
andTextEdit.text
update their contents when the source of the one-way binding changes, exactly as it does forText.text
Note:
This issue is not about the known issue where two-way bindings to struct fields does not work. In the application from which this issue comes, the user can successfully edit the profile name and its data is reflected in the
profile
property as expected, and can be extracted in code for further processing, as expected.