I have a GUI implemented with QT. The GUI has many buttons and one of them executes a shell script:
system("/bin/sh executeScene.sh");
The script is executed properly but, the GUI is blocked until I close the script that was previously called. Is there a way to execute my shell script without blocking the GUI?
The GUI has another button to stop the shell script but, as the GUI is blocked, I cannot stop the script.
Use
QProcessto run the process asynchronously.