Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Problem with QProcess on embedded system
goli last edited by
i create a project that can run a exe file. i tried to run the program on linux(Ubuntu), and it works OK.
when i run this on embedded it doesn't work.
this is the code for the class that run the exe:
@void ProcessControllerItem::startProcess(const QString& _path, const QString& _args)
QProcess* process = new QProcess;
process->start(_path, _args.split(" "));
when i run this function i pass the appropriate arguments to the function:
- the path - where the exe is (on the embedded - the path from the root)
- the arguments for the exe
for example :
Does anyone have an idea why it does not work?
fluca1978 last edited by
I don't have any experience on embedded qt, but the first thing I would check is that the program exist and is executable, then that it is really not executed and maybe not executed and terminated immediately (wrong input?).
goetz last edited by
You should check the return value of QProcess' error() method.