How to reset the value of an input widget after the widget state is changed #3108
Unanswered
Ethanwolfie
asked this question in
General
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bindings of values of input widgets break when the state of the widget changes. I'm trying to implement a number input widget using the LineEdit widget, the initial value binds to some global value. But after the input text has changed, if I'm trying to reset the global value, the property binding doesn't work anymore. Is there a recommended way or workaround for the LineEdit widget to automatically get updated to the new global value after the property binding is broken? Or do I have to create a callback in the root object and call the callback to manually reset the value everytime the global value is changed, which I think is rather cumbersome.
Beta Was this translation helpful? Give feedback.
All reactions