[Qt-interest] Waiting for QProcess to finish without freezing GUI

Lars Amsel lars.amsel at signalion.com
Fri Jul 10 07:20:43 CEST 2009


Thiago,

Thiago Macieira wrote:
 > Please don't delete the signal sender in its slots. It's bad practice and
 > will sooner or later cause crashes.

Thanks for that hint. I'm new to Qt (worked with Java/Swing, Delphi/VCL before). 
What would be good practice? Calling deleteLater like this?

void MyClass::onProcessFinished(int exitCode, QProcess::ExitStatus status) {
   process.deleteLater();
   process = NULL;
}

regards

Lars



More information about the Qt-interest-old mailing list