Friday, 15 June 2012

c++ - How to identify the line cause the Qt's warning message? -



c++ - How to identify the line cause the Qt's warning message? -

i using qt, , gives warning message starts [e] in debug window. of time, [e] warning message provides info line info cpp file gives warning. one:

at kernel\qmetatype.cpp:597 type conversion registered type qpair<qbytearray,qbytearray> type qtmetatypeprivate::qpairvariantinterfaceimpl

however, these cpp files qt's own files , dlls in windows. thing is, have never registered such type conversion in own code. , warning seems multi-threading since doesn't appear every time. there method, function,tools or techniques help me identify line of own source code triggered warning?

qwarning , others qdebug methods send logs through message handler.

you can replace default 1 own using qinstallmsghandler , place breakpoint inside.

c++ multithreading qt

No comments:

Post a Comment