Qt docs say:These are static methods, so you don't need QProcess instance to invoke them and even if you do use it, they won't influence it.int QProcess::execute ( const QString & program, const QStringList & arguments ) [static]
Starts the program program with the arguments arguments in a new process, waits for it to finish, and then returns the exit code of the process. Any data the new process writes to the console is forwarded to the calling process.
The environment and working directory are inherited by the calling process.
On Windows, arguments that contain spaces are wrapped in quotes.
int QProcess::execute ( const QString & program ) [static]
This is an overloaded member function, provided for convenience.
Starts the program program in a new process. program is a single string of text containing both the program name and its arguments. The arguments are separated by one or more spaces.
Bookmarks