<QtPreprocessorSupport> 代理页面

QT_STRINGIFY(arg)
Q_UNUSED(name)

宏文档

QT_STRINGIFY(arg)

该宏可用于将内置的行扩展器arg 转换为字符串字面量。

Q_UNUSED(name)

向编译器表明,带有指定name 的参数未在函数体中使用。这可用于抑制编译器警告,同时允许在函数签名中定义有意义的参数名。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.