QT定义全局define

当在源文件中增加

#ifdef xxxxx

#endif

注释了某一段代码,

不想在某个文件定义 #define xxxxx

可以在Makefile 编译选项中增加 CPPFLAGS += -Dxxxxx

或在MediaPlayer.pro文件中增加 DEFINES += xxxxxx

posted @ 2015-01-23 09:43  zuokong  阅读(3663)  评论(0编辑  收藏  举报