On the window platform, On the assumption that the user don't know the MS word install path, I want to call the winword.exe to open a defaut doc file such as E:/test.doc through the Qt program. The Qt provide a QProcess class to start external programs, but I don't know how to use them. the following is my code, it does not work! Does anyone has some idea? thank you!

Qt Code:
  1. QProcess* por = new QProcess(this);
  2. lst.append(tr("E:/test.doc"));
  3. por->start(tr("WinWord.exe"),lst);
To copy to clipboard, switch view to plain text mode