#include "Process.h" #include #include class QObject; Process::Process(QObject* parent) : QProcess(parent) { } void Process::start(const QString& program, const QVariantList& arguments) { QStringList args; for (int i = 0; i < arguments.length(); i++) args << arguments[i].toString(); QProcess::start(program, args); } QString Process::getOutput() { return QProcess::readAllStandardOutput(); }