[SOLVED] capture the output of a class
I have the following code,
- void Hello::sayHello()
- qDebug() << "foo";
I want to capture the following output in qwidget like qtcreator does.
The above code isn’t a separate application, it lives in same application
in which i want to print the output into the qwidget.
thanks in advance
Were you looking for the qInstallMsgHandler() function?
qinstallMsgHandler can give me the output from a function like,
- void myMessageOutput(QtMsgType type, const char *msg)
My debug output doesn’t come from methods like this, but it comes from the qDebug macro.
Is there a way to capture that output?