Results 1 to 9 of 9

Thread: Can't send a Ctrl-C to a QProcess (Win32)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Can't send a Ctrl-C to a QProcess (Win32)

    I create a Process class from QProcess to run MEncoder.

    Everything's fine and I can abort the process with kill() method.

    However in Win32 CLI, running MENcoder and typing Ctrl-C make MEncoder to stop smoothly.

    Therefore I try to stop smoothly writing Ctrl-C (0x03) with:

    Qt Code:
    1. class Process : QProcess
    2. {
    3. ...
    4. char ctrlC = 0x03;
    5. write( &ctrlC );
    6. ...
    To copy to clipboard, switch view to plain text mode 

    And it just does nothing
    Last edited by wysota; 12th December 2010 at 16:23. Reason: changed [qtclass] to [code]

Similar Threads

  1. How to send a "Ctrl+V" event to a QWebView
    By daudiam in forum Qt Programming
    Replies: 2
    Last Post: 1st December 2010, 09:51
  2. POSIX/Win32 Port involving QProcess, QSharedMemory
    By sfabel in forum Qt Programming
    Replies: 0
    Last Post: 15th July 2010, 23:00
  3. filterout the Alt+Ctrl+Del
    By sudhansu in forum Qt Programming
    Replies: 6
    Last Post: 25th March 2010, 07:55
  4. CTrl + A
    By navi1084 in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2008, 09:19
  5. arg!!!! QProcess on win32
    By gfunk in forum Qt Programming
    Replies: 7
    Last Post: 27th January 2008, 18:40

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.