c++ - cpp/Qt : per class debugging -


I'm developing a QT application for each class, I'm trying to duplicate the structure, such as Error () and error string () method, use private implementation.

But I'd like to add debugging per class:

  • Set a macro at the desired level of debug,
  • There is a macro or a function that is debug , And use qDebug () or qWarning () which is independent of the class
post-text "itemproc =" text ">

You can write a class with all the necessary debug methods, for example CDBbug, and use it in other classes like:

  class C MyDialog: Public QDialog, Public CDebug {...};