1
0
Fork 0
VideoPlayer/src/Process.cpp
2023-12-05 15:13:13 +00:00

26 lines
451 B
C++

#include "Process.h"
#include <QStringList>
#include <QVariant>
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();
}