Unsolved In Qt Installer Framework, how do I wait for component.addOperation() to complete?
-
This post is deleted! -
I think they are performed in a separate thread, but not in parallel.
-
Yes, from the source code, you can see that the operations are run by
QtConcurrent::run
, so they are threaded.
But the installer will wait for each operation to finish. So they won't be run simultaneously. -
@sierdzio It's creating problem when my current operation depends upon the previous operation. For eg., if I create a directory in current operation and in the next line I'm copying something to this new directory, then I will get an error like "the directory doesn't exist" or something during installation.
-
But are you actually getting this error? Because tasks are not run in parallel. They execute one by one - so what you describe should not be happening.
If you are really seeing an error, please post the code, exact error logs.