Results 1 to 3 of 3

Thread: General way to end a Qprocess-running executable?

  1. #1
    Join Date
    Sep 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default General way to end a Qprocess-running executable?

    Hi,

    I have another question. What is a general way to end a QProcess-a running executable (windows os)? Here is part of the code.

    commandProcess.start("C:/ffmpeg.exe",args);

    What kind of general statement using commandProcess (if possible), can I use to stop the program?

  2. #2
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: General way to end a Qprocess-running executable?

    see terminate() and kill().

  3. #3
    Join Date
    Sep 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: General way to end a Qprocess-running executable?

    Yes I looked but it doesn't seem to work in my case. Do you have an example?


    Added after 27 minutes:


    commandProcess.close(); seems to work okay.
    Last edited by Milardo; 5th December 2010 at 07:05.

Similar Threads

  1. Replies: 12
    Last Post: 11th September 2010, 02:39
  2. Replies: 0
    Last Post: 26th August 2010, 11:44
  3. Replies: 5
    Last Post: 17th March 2010, 19:30
  4. Qt3 qprocess, executable exited?
    By triperzonak in forum Newbie
    Replies: 2
    Last Post: 22nd September 2008, 12:21
  5. Error running executable
    By Salazaar in forum Newbie
    Replies: 8
    Last Post: 21st May 2007, 07:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.