Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74074

QProcess startDetached is not setting an environment for the new process

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.12.1
    • Core: I/O
    • None
    • Windows

      Setting an env variable to, say QProcess exeB, is not available to another process started with exeB.startDetached. It is working fine with exeB.start.

      1. Execute the attached sample.
      2. out.txt file is generated via AnotherProcess having all the env variable.
      3. Newly set variable "PYTHONHOME"= "NewVariable" is not listed in out.txt.
      4. If process is started with exeB.start(), it works fine.

      Attaching the source code for AnotherProcess for reference.

        1. AnotherProcess.zip
          3 kB
          Shveta Mittal
        2. qtbug74074.zip
          9.79 MB
          Shveta Mittal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            shmittal Shveta Mittal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes