C++ (Qt) connect(&process, &QProcess::readyReadStandardOutput, [&](){qDebug() << process.readAllStandardOutput();}); connect(&process, &QProcess::readyReadStandardError, [&](){qDebug() << process.readAllStandardError();});