慕用7234263
QProcess process(this);QString program = "C:\\Users\\admin1\\Desktop\\QT\\TestTool\\dtm_run.exe";
QStringList arguements;
arguements << ui->comboBox_2->currentText() << ui->comboBox->currentText();process.start(program, arguements);
process.waitForStarted();
process.waitForFinished();QString result = QString::fromLocal8Bit(process.readAllStandardOutput());
qDebug() << "测试结果:" << result;兄弟问题解决了吗,我也遇到这个问题,怎么也获取不了python程序中输出的结果,用系统的cmd运行ping命令是可以获取结果的,换成自己编写的程序就不行了