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. (SOLVED) How to run another application as a background process?
Forum Updated to NodeBB v4.3 + New Features

(SOLVED) How to run another application as a background process?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 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.
  • S Offline
    S Offline
    skkyeo
    wrote on 3 Nov 2014, 07:38 last edited by
    #1

    Hi guys,

    I am trying to run an .exe file from my application but I want this exe to be running as a background process. I searched high and low and could not find a satisfactory answer.

    Any help is appreciated.

    Thanks,
    Kelvin

    EDIT:
    The solution that I implemented:
    QProcess processServer;
    QStringList arguments;

    arguments << "some argument";// build some.exe such that "some argument" will hide some.exe in the background.
    processServer->start("some.exe",arguments);

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jeroentjehome
      wrote on 3 Nov 2014, 07:41 last edited by
      #2

      Hi,
      Use the QProcess class, but then the OS is responsible for the background option. You need to search on that. Or if you control the exe file itself, give some arguments to the exe and make it hidden for itself.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • S Offline
        S Offline
        skkyeo
        wrote on 4 Nov 2014, 01:50 last edited by
        #3

        Hi thanks for the reply. I asked for the arguments from the developers of the exe and that solved my problem. Thanks alot.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          IamSumit
          wrote on 4 Nov 2014, 04:59 last edited by
          #4

          Hi skkyeo.
          can you share your answer on this thread..so in future other members can get the solution quickly.

          PS : Don't forget to update your thread title as (SOLVED) :)

          Be Cute

          1 Reply Last reply
          0

          1/4

          3 Nov 2014, 07:38

          • Login

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