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. I can run command script via terminal but gui application does not....
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k 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.
  • P Offline
    P Offline
    phamtv
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

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