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] Doubt on QProcess Use

[Solved] Doubt on QProcess Use

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.2k 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
    Swinetha
    wrote on last edited by
    #1

    hi,
    I have doubt regarding QProcess.start() function, If I start an external program .exe file then it will run as a Background or It will starts that application.

    For example if I start a Matlab.exe using QProcess then it runs only background of QT or It will opens the Matlab window separately

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You could have coded a simple experiment to answer this question for yourself.

      If QProcess::start() starts something that has a GUI of its own then that GUI will be displayed. The child process stdin, stdout, and stderr are connected to the QProcess instance but they are not very useful in the average Windows GUI application.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Matlab will open just as usual. If you start the process by QProcess::start(), it will be bound to your app (as a child process). If you use QProcess::startDetached() it will run completely separately, just as if you have run it from - say - start menu.

        (Z(:^

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Swinetha
          wrote on last edited by
          #4

          Thank you for your reply. I tried simple program my self & I cleared my doubt

          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