Hello all,

I'm working on a program which makes many lengthy calls to an external library, which typically prints a large amount of diagnostic information to cout. I'd like to call this library from a separate QThread so my GUI remains responsive, but I would also like to redirect the cout to a QPlainTextEdit for the user to see.

I have looked into initializing a QDebugStream for the QThread to redirect the cout to the GUI, but it doesn't seem to suit me as it modifies the QPlainTextEdit directly via a pointer, and the GUI cannot be modified by a QThread except by signals.

Is there a standard way to do this that I have overlooked in my Google/Stackoverflow searches?

Regards,
Kyle