[Development] Stopping a QProcess gracefully

achartier at fastmail.fm achartier at fastmail.fm
Thu Aug 7 19:46:22 CEST 2014


> On Wed, Aug 06, 2014 at 11:19:49PM -0700, achartier at fastmail.fm wrote:
> > (3) Writing the return key to the process with QProcess::write("\r") and
> > QProcess::write("\\r)
> >
> you need to use waitForBytesWritten() (or actually wait for the signal
> to be delivered).

Thanks! Forgot write was asynchronous. Using waitForBytesWritten() and
sending "\u000A" instead of "\r" or "\\r" did the trick.



More information about the Development mailing list