linux cpu占用率如何看
341
2022-08-27
QT5 打开word,excel,powerpoint,notepad,paint,calculator等windows程序示例
今天项目中要求打开word,excel等文件,我特地试了一下,前提是先装好office软件,我的软件是office 2010
打开计算器:
QProcess p(0);p.start("cmd", QStringList()<<"/c"<<"calc");p.waitForStarted();p.waitForFinished();
打开画图工具:
QProcess p(0);p.start("cmd", QStringList()<<"/c"<<"mspaint");p.waitForStarted();p.waitForFinished();
打开office word:
QProcess p(0);p.start("cmd", QStringList()<<"/c"<<"start winword");p.waitForStarted();p.waitForFinished();
打开excel:
QProcess p(0);p.start("cmd", QStringList()<<"/c"<<"start excel");p.waitForStarted();p.waitForFinished();
打开ppt:
QProcess p(0);p.start("cmd", QStringList()<<"/c"<<"start powerpoint");p.waitForStarted();p.waitForFinished();
参考文献
[2].Swing客户端调用系统命令 启动office(Word,Excel).https://iteye.com/problems/57242
[3].怎么用DOS命令打开PPT. https://zhidao.baidu.com/question/1950073857880915828.html
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~