利用QProcess调用外部程序,并传递参数 //typedef QProcess::CreateProcessArgumentModifier//Note: This typedef is only available on desktop Windows.include <Windows.h>QString program = "C:/Windows/System32/notepad.
定义 The QProcess class is used to start external programs and to communicate with them. QProcess类是用来启动一个外部程序并与之通信。 使用说明 开启外部线程的3中方式 To start a process, pass the name and command line arguments
1、主程序:初始化及设定信号槽 process = new QProcess(); connect(process,SIGNAL(started()),SLOT(started())); connect(process,SIGNAL(finished(int,QProcess::ExitStatus)),SLOT(finished())); connect(proc