This commit is contained in:
2023-02-07 22:12:05 +08:00
parent df0580cba8
commit 107c886f3f
23 changed files with 255 additions and 70 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "command.h"
#include <QProcess>
Command::Command()
{
}
QString Command::GetCommand(QString command){
QProcess process;
process.start(command);
process.waitForStarted();
process.waitForFinished();
return QString::fromLocal8Bit(process.readAllStandardOutput());
}