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:
QStringList lst; lst.append(tr("E:/test.doc")); por->start(tr("WinWord.exe"),lst);To copy to clipboard, switch view to plain text mode
Bookmarks