In my Qt GUI application, I am calling the command prompt through:
system("lots.exe & of.exe && commands.exe");
It opens up the command prompt (like I want it to), but freezes the Qt GUI application until I close the command prompt. Is there someway to prevent this? I saw that there is a QProcess class, but can't get it to bring up the command prompt.
Any help would be greatly appreciated!
QProcess
is really the answer. If you want to use something like system()
you'll have to either put the call in another thread or use popen
or something simmilar for your platforms.
QProcess
does have the setReadChannel
which you could use to display your own console window to show the output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With