[SOLVED] Monitoring multiple processes using QProcess
General and Desktop
5
Posts
3
Posters
4.7k
Views
1
Watching
-
Hello,
I want to write an application that will launch multiple instances of the same executable which of course is easy enough. But I also need to read their unique stdout and stderr streams on their signals. Is this possible? If it is I would really appreciate a few pointers on how to go about this.
--
Regards,William
-
You create a new QProcess object for each of the processes (using new and pointers, no stack allocation, as the process is destroyed once the variable is out of scope). So you have access to the individual input and output channels. Just keep the pointers and organize them so that you know which is which (e.g. using a hash table or a list).
-
-