I saw an example of how to connect cout to a QTextStream object so that a file could be written to the same way as stdout. I can't remember where I saw the example. Could someone help me out?

I'm guessing whatever the trick is would work for cin as well.

Please & Thank You,

Ed