How to make a global QTextStream cout(stdout)?

There is a main function and it has two? How and where to create the object QTextStream cout(stdout) to implement the class I was able to use it in main?
April 19th 20 at 12:29
1 answer
April 19th 20 at 12:31
Google singleton pattern
will not help, while the output from multiple threads will be a mess in stdout - tierra_Corke commented on April 19th 20 at 12:34
@aleen, you need to use mutexes, then there will be - Callie.Reichert72 commented on April 19th 20 at 12:37

Find more questions by tags Qt