How to redirect qDebug, qWarning, qCritical etc output?
题
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?
没有正确的解决方案
不隶属于 StackOverflow