[Interest] qDebug under Windows

Thiago Macieira thiago.macieira at intel.com
Tue Aug 11 01:11:57 CEST 2015


On Monday 10 August 2015 14:40:58 Jérôme Godbout wrote:
> Hi,
> I have some problem under Windows to redirect the qDebug() default output,
> it seem to go to the Windows "debugger" output and I would like it to be
> sent to stdcerr instead. How/where can I change that for Windows (work
> normally under Linux)?

Option 1: run the application attached to a console / terminal.

Option 2: set QT_LOGGING_TO_CONSOLE=1

The rules are the same for all platforms, not just Windows.

> I think I will have to recompile Qt to do this with the CONFIG option as
> console I guess. Any way to redirect this otherwise?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list