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.

原文地址:https://www.cnblogs.com/god-of-death/p/8334052.html