Skip to content
Discussion options

You must be logged in to vote

Are there any examples on how to handle longer running tasks?

Since your task appears to be CPU-bound, I think you'll want to spawn a thread to do the work and eventually move the result back to the main thread to show in the UI. Slint provides slint::invoke_from_event_loop for this, and I think the example provided in the documentation should help.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@apertureless
Comment options

@bjorn
Comment options

@apertureless
Comment options

@bjorn
Comment options

Answer selected by apertureless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants