Switching from Qt 5.3 to 5.4, suddenly my custom message handler is receiving neither the line number nor file name from Qt libraries that use qDebug(), qWarning() and qCritical().
The docs indicate that this was a change in Qt 5.4. To get this information you have to explicitly define QT_MESSAGELOGCONTEXT. So I did. I downloaded the Qt 5.4 source code, configured it, compiled it, and set my code to use the new libraries. The problem is, I'm still not getting the file name and line number info.
Here's how I'm configuring the Qt build:
configure.bat -platform win32-msvc2010 -debug-and-release -nomake examples -nomake tests -opensource -opengl desktop -c++11 -no-strip -D QT_MESSAGELOGCONTEXT