I often wanted to use QTextEdit as a quick means of displaying what is being written to the stream. That is, instead of writing to QTextStream out (stdout), I want to do something like:
QTextEdit qte; QTextStream out(qte);
I could do something like this if I emitted a signal after writing to a QTextStream attached to a QString.
The problem is that I want the interface to be the same as if I were streaming in stdout , etc .:
out << some data << endl;
Any ideas on how I can do this?
Thanks in advance.
source share