How to redirect qDebug, qWarning, qCritical etc output?
Question
I'm using a lot of qDebug() <<
statements for debug output. Is there any cross-platform way I can redirect that debug output to a file, without resorting to shell scripts? I'm guessing that open() and dup2() will do the job in Linux, but will it work compiled with MinGW in Windows?
And maybe there is a Qt way to do it?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow