Results 1 to 4 of 4

Thread: Interactive QProcess

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    23
    Thanks
    2

    Default Re: Interactive QProcess

    Quote Originally Posted by wagmare View Post
    one question .. out of scope but ...
    if u press key "q" the QProcess application is closing or complete a task but not killed ..
    if the external application be killed when user press "q" ... then u can use keyPressEvent , catch the key "q" and close the process QProcess::terminate() ..
    That does kill the application (that's what I was doing). However when the 'q' is pressed, apart from terminating, it does some other important stuff before quitting.

  2. #2
    Join Date
    Jul 2009
    Posts
    23
    Thanks
    2

    Default Re: Interactive QProcess

    Update:

    I was using kill() to kill the application; terminate() does nothing.

    When the application stops and waits for user input I can use write() to send input, and that does work.

    What does not work is when I send input while the application is working.

Similar Threads

  1. Detect First QProcess finished in a group and kill other
    By Davidaino in forum Qt Programming
    Replies: 3
    Last Post: 11th July 2008, 13:53
  2. QProcess exitStatus()
    By user_mail07 in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2008, 21:51
  3. QProcess and Pipes
    By KaptainKarl in forum Qt Programming
    Replies: 1
    Last Post: 10th April 2007, 00:11
  4. QProcess extremely slow on Windows?
    By Pepe in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2007, 01:25
  5. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 14:30

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.