call external executable file in Mac OS from QT
I ‘m trying to call an external executable file in Mac OS using DesktopServices , the executable name is
ABC.x, I can run the executable from Mac OS command line with ./ ABC.x
But cannot find a right way to call the executable from QT, I tried something as following, but it is not working
QProcess *process =new QProcess(this);
the executable not launching. (No response) Please help.
In principle you have the right code, provided the path is correct.
You will need to look through
QProcessdocs for code which lets you see errors, like
errorOccurred(), and similar.
QProcess more suitable for this. What error your getting when u QProcess?
@Chandras002 yes I tried, but there was no error at all!
@JonB thanks I solved the problem by using QT to call a cs.command file, and cs.command calls the executable file.