Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. In Qt Installer Framework, how do I wait for component.addOperation() to complete?

In Qt Installer Framework, how do I wait for component.addOperation() to complete?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 990 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    akhi95
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I think they are performed in a separate thread, but not in parallel.

      (Z(:^

      A 1 Reply Last reply
      0
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • sierdzioS sierdzio

          I think they are performed in a separate thread, but not in parallel.

          A Offline
          A Offline
          akhi95
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            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.

            (Z(:^

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved