草庐IT

dumpObjectInfo

全部标签

c++ - 如何使 dumpObjectInfo 打印调试信息?

我想使用dumpObjectInfo函数打印对象信息的转储,但没有打印任何内容。下面是一个使用Qt的C++程序:$catmain1.cpp#include#include#include#include"a.h"intmain(){Aa;Bb;QObject::connect(&b,SIGNAL(sendText(QString)),&a,SLOT(printText(QString)));b.sendSignal();qDebug()有如下.pro文件(在CONFIG中设置Debug模式):$catqt.pro#####################################