I’m trying to start Microsoft word using QProcess as following:
QString program = "WINWORD.EXE";
process->start(program);
but nothing happens.
winword.exe is on path (so when i type winword.exe word is openning up).
Is it the right way to do so ?
may be code below will help you:
I think you are trying to execute program that doesn’t consists in global $PATH windows variable, that’s why winword.exe doesn’t executes.
Also you may need to define absolute path to program, e.g.: