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!
QProcessis really the answer. If you want to use something likesystem()you’ll have to either put the call in another thread or usepopenor something simmilar for your platforms.QProcessdoes have thesetReadChannelwhich you could use to display your own console window to show the output.