DEFINES += QT_NO_DEBUG_OUTPUT
#define QT_NO_QDEBUG_MACRO while (false) QMessageLogger().noDebug
#if defined(QT_NO_DEBUG_OUTPUT)
# undef qDebug
# define qDebug QT_NO_QDEBUG_MACRO
#endif
#if defined(QT_NO_INFO_OUTPUT)
# undef qInfo
# define qInfo QT_NO_QDEBUG_MACRO
#endif
#if defined(QT_NO_WARNING_OUTPUT)
# undef qWarning
# define qWarning QT_NO_QDEBUG_MACRO
#endif
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <QtCore/QCoreApplication>
#define QT_NO_DEBUG_OUTPUT //屏蔽debug输出
#define QT_NO_WARNING_OUTPUT //屏蔽warning输出
#include <QtDebug>
int
main(
int
argc,
char
*argv[])
{
QCoreApplication a(argc, argv);
qDebug(
"Funciton debug"
);
qDebug()<<
"Stream debug"
;
return
a.exec();
}
|
文档信息
- 版权声明:自由转载-非商用-非衍生-保持署名 | Creative Commons BY-NC-ND 3.0
- 博客网址: http://blog.163.com/qimo601@126/blog/static/15822093201332415344103/
- 博 主: 柳北风儿
- 友情支持:如果对您有点帮助,请帮忙点一下我的日志右边或下方的网易广告。非常感谢!
8132



被折叠的 条评论
为什么被折叠?



