How can I invoke request_redraw() from within the Slint code? #8499
Unanswered
bob-anderson-ok
asked this question in
Q&A
Replies: 1 comment
-
request_redraw should be invoked automatically if any of the property binding used for rendering becomes dirty. Maybe it would be easier to answer the question if you had some sample code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The order in which Slint process gui changes is apparently not necessarily in the order implied by my code. I have a line that updates a text element, then executes a callback. Sometimes the text gets redrawn first, then the callback runs, and sometimes the reverse happens. I would like to control that by asking for a redraw between my two lines of code. I see references to request_redraw(), but from within my AppWindow, that function cannot be found, or I simply can't figure out the magic handshake.
Bob
Beta Was this translation helpful? Give feedback.
All reactions