[Qt-interest] detached QProcess
Sarvesh Saran
Sarvesh.Saran at synopsys.com
Tue Jul 21 14:32:00 CEST 2009
Hi,
I have a GUI application that starts a external binary in a QProcess. ..(new QProcess(this)) ...
However there are cases when the external binary crashes which in turn causes my GUI application to crash as well.
Detaching the QProcess prevents this from happening but then I am unable to read the QProcess standard output and stderr..
I tried redirecting the detached QProcess output to a QTemporaryFile and reading from the file...but the detached process fails to write anything to the file in the first place.
I was wondering if there is a way to prevent the GUI from crashing if it's QProcess crashes...any ideas?
Thanks,
Sarvesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090721/09d9e2fe/attachment.html
More information about the Qt-interest-old
mailing list