Qt ------ Q_UNUSED

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.

posted @ 2018-01-23 09:43  流水灯  阅读(521)  评论(0编辑  收藏  举报