How to check if a program is running, by its name, with Qt (C++).
Will QProcess::pid do the job? I don\'t know how to use it. Please suggest.
QProcess::pid
//How to Run App bool ok = QProcess::startDetached("C:\\TTEC\\CozxyLogger\\CozxyLogger.exe"); qDebug() << "Run = " << ok; //How to Kill App system("taskkill /im CozxyLogger.exe /f"); qDebug() << "Close";
enter image description here