Look at the QProcess documentation. There is an example there.
execute() is a static member so you don't need a QProcess instance.