开发者

Can I show qDebug() output in my Qt application?

开发者 https://www.devze.com 2023-02-22 20:55 出处:网络
I开发者_如何学Go use qDebug() commands throughout my project to throw information to the Output box in Visual Studio. Is there a way to make the qDebug() stream display in a widget in my application,

I开发者_如何学Go use qDebug() commands throughout my project to throw information to the Output box in Visual Studio. Is there a way to make the qDebug() stream display in a widget in my application, like a test mode/error console?


You can use qInstallMessageHandler to redirect the output of qDebug. For an example see the answer to the question "Custom and Default Message Handler in Qt"

0

精彩评论

暂无评论...
验证码 换一张
取 消