qt 외부 프로그램 실행1 [Linux, Qt] QProcess로 쉘 명령어, 프로그램 시작하는 방법 Qt에서 QProcess를 이용하여 프로그램이나, 명령어를 실행할 수 있으며 Arguments 값도 넣어 실행가능하고 터미널에서 명령어를 실행하여 나오는 결과 값도 받아 낼 수 있어요. - 사용 방법 #include int QProcess::execute(const QString &program, const QStringList &arguments) void QProcess::start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode = ReadWrite) ○ 명령어, 프로그램 실행이 종료될 때까지 대기하기 bool QProcess::waitForFinished(int msecs = 30000) - 설명 1. 사.. 2021. 5. 14. 이전 1 다음