Use newer qInstallMessageHandler in Qt 5