[Qt-interest] QT4 QProcess How tsend CTRL+C

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Mon Nov 16 08:00:05 CET 2009


Steffen Meisel wrote on Monday, November 16, 2009 7:49 AM:

> ...
> I saw that there was a QProcess member called tryTerminate in QT3,
> which seems to have the same behavior as CTRL+C to the process. But
> this isnt available anymore in QT4.  

Did you try:

  http://doc.trolltech.com/4.5/qprocess.html#close

"Closes all communication with the process and kills it. After calling this function, QProcess will no longer emit readyRead(), and data can no longer be read or written."

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list