看代码的时候发现有用这个字段的
查询了下QtAssist这么说的:
Q_UNUSED ( name )
Indicates to the compiler that the parameter with the specified name is not used in the body of a function.
This can be used to suppress compiler warnings while allowing functions to be defined with meaningful parameter names in their signatures.
但是还是不太明白,这个字段标示变量后会触发什么事件 吗?
有知道的麻烦给解释下
不胜感激
[ 此帖被午小夜在2010-04-02 18:23重新编辑 ]