@aliemrenebiler said in Run a terminal command with a button click:
QProcess is not working, the program never opens and says as output "QProcess: Destroyed while process ("...") is still running.".
The problem would appear to be that your QProcess object goes out of scope (is destroyed) while the process you asked it to launch is still running i.e. exactly what the error message says. This is most likely because you have create the QProcess on the stack in the slot handling your button click, but it could be because it is parented to another QObject that is destroyed.
We can only guess without seeing your code.