开发者

Qtestlib log window

开发者 https://www.devze.com 2023-01-22 00:28 出处:网络
I link my program against the qtestlib and include QTest. But then I get a log-window which prompts all the qDebugs, when the application starts even if I set the configuration to release or debug.

I link my program against the qtestlib and include QTest. But then I get a log-window which prompts all the qDebugs, when the application starts even if I set the configuration to release or debug. Is it possible to includ开发者_JAVA技巧e QTest without opening a log-window on application start? I need some functionality of QTest in my program.

Note that i tried below options in the pro file, but this doesn't helped 1) CONFIG += qtestlib CONFIG -= console

2) tried with -silent option, but still log window is coming.

I dont need this log window in my application as i am capturing the logs in a separate file which i am generating using qInstallMsgHandler.


QTestLib is for tests, not production programs. You can't get rid of the log window without modifying Qt itself.

0

精彩评论

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

关注公众号