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. Qprocess Start vs Start detached
Qt 6.11 is out! See what's new in the release blog

Qprocess Start vs Start detached

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 683 Views
  • 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
    Ahmadinho
    wrote on last edited by
    #1

    Hello everyone,
    I understand there are some differences between both functions, however I have found that the script finish time is a lot faster when choosing startdetached instead of start, for example:

    I have a python script that communication by udp with my qt program, i start this script from my program GUI, if if use start, this script takes 30 minutes to finish, if i use start detached it takes about 22 minutes to finish, so start detached seems to be a lot faster, any explaination to this?

    Thanks.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ahmadinho said in Qprocess Start vs Start detached:

      any explaination to this?

      Does your script output a lot of text to the console?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

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

        @Christian-Ehrlicher ,
        No it does not, only like 15 prints or so.

        However it communicates heavily on UDP.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Try to close the channels anyway to see if there is a difference.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Ahmadinho
            wrote on last edited by
            #5

            @Christian-Ehrlicher ,

            What do you mean by close channels? you mean use closereadchannel and closewrite channel, and if I use them, will i be able to redirect the stdoutput of the process to my program(which works with start but not start detached) or not?

            Thanks.

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Ahmadinho said in Qprocess Start vs Start detached:

              will i be able to redirect the stdoutput of the process to my program

              No, you can't anymore. It's also just for testing to find out if this can be the problem.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              2

              • Login

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