Hi,

My application writes to an C++ STL output stream (ostream) during the execution of the program. I would like to display the whatever written to the ostream immediately to an widget (such as QDockWidget).

I have been looking through document and examples related to QTextStream/QTextEdit/QDataStream, and still can't figure out how to do this. For example, for QTextStream, it only takes FILE as an argument but not an ostream. For QTextEdit, it doesn't seem it can do this either.

Any guide or even an example would be greatly appreciated.

Regards,
Kai