Home > Mobile >  Qprocess about distinguish stdout and stderr related problems;
Qprocess about distinguish stdout and stderr related problems;

Time:09-19

Recently met a problem:

The program I use qprocess call another program. At the same time ning a program that will print some information according to the circumstance, (cerr, cout) and then in the main program interface display, print information consistent with subroutine prints

Now I realize is the use of MergedChannels; Put the two together, can guarantee the received information, then read a line, all read and correct sequence.

Now to the to not together, but need to make sure that order is correct; how should do?
  •  Tags:  
  • Qt
  • Related