Once a minute I want to run a task, not blocking other GUI functions. I heared somthing about QConcurent::run ...
Or should I use signals and slots?
Once a minute I want to run a task, not blocking other GUI functions. I heared somthing about QConcurent::run ...
Or should I use signals and slots?
Use QConcurrent it sounds like what you need. And you can use QFutureWatcher to get signals when it's done (which uses signals and slots)
There is a world of differences between the two options you are discussing.
My experiences have been -
You have 3 at least choices if you need to multithread (using just Qt). Each approach is somewhat different in how they work and what their overhead costs are. The real choice needs to be made on how you are using threading in the rest of your application.