PDA

View Full Version : Redirecting qDebug()



hardgeus
23rd December 2006, 00:47
Is there any way that I could change the behavior of qDebug()? What I would like to do is open up a file at the beginning of my program, and somehow point qDebug() to it such that instead of writing to stdout, it dumped to my text file.

jacek
23rd December 2006, 01:39
http://doc.trolltech.com/4.1/qtglobal.html#qInstallMsgHandler