QString cmd = "/bin/sh -c \"echo ${USER}\"";
QProcess process;
process.start(cmd);
process.waitForFinished();
qDebug() << process.readAll();
QProcess调用echo回显
最新推荐文章于 2024-01-08 10:23:38 发布
QString cmd = "/bin/sh -c \"echo ${USER}\"";
QProcess process;
process.start(cmd);
process.waitForFinished();
qDebug() << process.readAll();