QProcess::execute() is a static call so it ignores whatever you do with the QProcess object. Use QProcess::start() instead.