[Interest] Gracefully Closing a QProcess

Thiago Macieira thiago.macieira at intel.com
Sat Aug 9 01:46:57 CEST 2014


On Friday 08 August 2014 14:55:41 Jason R. Kretzer wrote:
> In the end, not sure what is the "right" way to go about this. All I 
> want to do is terminate and restart a process that has triggered an error.
> 
> Thoughts?

a) don't reuse the same QProcess object
b) reuse, but don't try to start a process from inside the error signal

To accomplish (b), you need to use a queued connection and you must not use 
sender().
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list