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

Steffen Meisel smweb1 at gmail.com
Mon Nov 16 07:48:49 CET 2009


Hi,

i'm new to QT and now facing a problem which i'm not able to solve without
some help.

I want to run a program as a QProcess (wireshark/dumpcap). This program i
have to stop using CTRL+C. But i want to implement the stop functionality
into a button, so that if the user is pushing the button, the program in the
QProcess is receiving CTRL+C and stops. I already tried kill and terminate,
but it seems that this is just shutting down the process immediately.

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.

So i know to appreciate any kind of help.

Thank you in advance

Steffen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091116/80fd026c/attachment.html 


More information about the Qt-interest-old mailing list