cpp/Qt : per class debugging
Posted
by dzen
on Stack Overflow
See other posts from Stack Overflow
or by dzen
Published on 2010-05-17T11:27:44Z
Indexed on
2010/05/17
11:30 UTC
Read the original article
Hit count: 283
I'm developing a Qt application. For each class, I'm trying to mimic the framework, such as error() and errorString() method, use of Private implementation.
But I would like to add a per class debugging:
- Set a macro to the desired level of debug,
- have a macro or a function that knows the level of debug, and use qDebug() or qWarning() which is class independant, and will know the current class's name (for some pretty prints)
Anyone have a good idea to implement this ?
© Stack Overflow or respective owner