[PyQt] How to intercept Qt's log messages

David Cortesi davecortesi at gmail.com
Thu Mar 13 23:47:32 GMT 2014


I have done some experiments using qInstallMessageHandler to intercept Qt's
log messages that would otherwise show up on stderr, and direct them into
Python log messages.

More discussion and some code is shown in this blog post:

http://thispageintentionally.blogspot.com/2014/03/trapping-qt-log-messages.html

Hope it's of some use or interest.

Dave Cortesi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140313/23113d1e/attachment.html>


More information about the PyQt mailing list