QProcess* pr = new QProcess();QStringList argarg<<"/dev";pr->start("ls", arg);pr->waitForFinished();QString message = pr->readAll();