I'm trying to execute a relative simple exe (that needs to get some input) that was made with VS. Using QProcess:
QProcess *process = new QProcess(this);
QDir::setCurrent(entire_path);
process->start(exe_name, QStringList() << ""); // for empty args
the thing is, that when I close the program, it says that my program (the one that i'm trying to execute), was destroyed while process. Also, if I use process->state(), it returns the value 2 - which means it's running. But, the thing is that no program appears.
Edit: the final solution needs to redirect the IO to files.
Edit 2: I also tried to open the exe from a c++ class, and to use that class in Qt, but it just open the cmd with this exe. If I use that class from a standard c++ main, the IO is from files, but using Qt, it just doesn't work.
I tried to open another program, like the calc, and it worked. So i have no idea what's the problem...
btw, I looked for other questions like this, didn't find any that helped...