Important: Please read the Qt Code of Conduct -

I can run command script via terminal but gui application does not....

  • I am developing an gui application that spawns a separate thread using another application. I can run the same command via the terminal and everything works fine. However, when I run the same command via the gui, it indicates that the application does not see a my external application. How can I ensure that my application is looking in the correct environment path?

  • Moderators

    You will need to set up the environment for the QProcess. What you need to do there tends to depend a bit on the OS you are using. You will definitely need to set up PATH correctly, but might need more (e.g. to find all the libraries your application needs).

Log in to reply