qt QProcess
- QProcess 用于启动外部程序并与它们进行通信
QProcess* mInputPlayProcess = new QProcess(this);
QString program = "D:/my-tools/ffmpeg/bin/ffplay.exe";
QStringList arguments = {"-noborder", "-x", "1920", "-y", "1080", "-loop", "0", "C:/Users/ajanuw/Desktop/1.mp4"};
mInputPlayProcess->start(program, arguments);