[Interest] QtMessageHandler writing to dialog or to Windows Event Log?

Christian Gagneraud chgans at gmail.com
Tue Nov 7 23:24:25 CET 2017


On 6/11/2017 10:49 PM, Joerg Desch wrote:
> Is there a QtMessageHandler open source implementation available, 
> implementing the "Windows Event Log" mechanism?
> 
> Or is there a Qt Widget which displays a logging window with binding
> to QtMessageHandler?
> 
> I want to have a simple to use (for users) "real time" logging for 
> Windows builds without writing messages into a file.

You just need to install your own handler, that will forward the 
messages to your log window.

http://doc.qt.io/qt-5/qtglobal.html#qInstallMessageHandler

Chris




More information about the Interest mailing list