16,175
社区成员
发帖
与我相关
我的任务
分享
keyProcess = new QProcess;
QString KeyPragram = "/opt/bin/hello";
connect(keyProcess,SIGNAL(readyRead()),this,SLOT(getOutput()));
keyProcess->start(KeyPragram);
void hello::getOutput()
{
QString keyOutput = "";
keyOutput += keyProcess->readAll();
qDebug()<<"&&& helloOutput = &&&"<<keyOutput;
}
printf(“hello world\n”)
.