Solved QMessageLogContext in release build
-
Hi,
i want to store the additional informations of theQMessageLogContext
.
In the docs is written:Note: By default, this information is recorded only in debug builds. You can overwrite this explicitly by defining QT_MESSAGELOGCONTEXT or QT_NO_MESSAGELOGCONTEXT.
But when i define QT_MESSAGELOGCONTEXT in my main.cpp the file, line etc. stoll will not be stored.
What i am doing wrong?
-
Hi,
You should rather add that define in your .pro file.
-
Sorry for the late reply.
I added the define in the pro file and everything works, thanks!