[Qt-interest] Any Way To Turn Off qDebug() Expression Evaluation

William Gordon Rutherdale (rutherw) rutherw at cisco.com
Tue Aug 9 16:24:37 CEST 2011


> -----Original Message-----
> From: qt-interest-bounces+rutherw=cisco.com at qt.nokia.com [mailto:qt-
> interest-bounces+rutherw=cisco.com at qt.nokia.com] On Behalf Of Thiago
> Macieira
> Sent: 8 August 2011 19:07
> Take a better look.
> 
> > Is anyone aware of a facility in Qt that makes it possible to
> eliminate
> > all those qDebug() expression evaluations?
> 
> Yes. #define QT_NO_DEBUG_STREAM or #define QT_NO_DEBUG_OUTPUT. They're
> slightly
> different, the latter is what you want.

Thanks.

This sounds like a compile-time solution.

-Will




More information about the Qt-interest-old mailing list