本文介绍了QT:隐藏QML调试警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
启用QML调试。
我实际上正在为需要使用QML调试的QtCreator项目开发Python测试软件。 python软件正在运行已构建的项目并测试其功能。我实际上想隐藏该消息而不禁用QML调试。
I'm actually working on a test software in Python for a QtCreator project which need to use the QML Debugging. The python software is running the built project and test it's features. I would like to actually hide that message without disabling the QML debug. Is it possible to do it?
推荐答案
您可以指定
DEFINES += QT_QML_DEBUG_NO_WARNING
禁用警告。
这篇关于QT:隐藏QML调试警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!