<QtPreprocessorSupport>

特定于预处理器的宏。更多内容...

Header: #include <QtPreprocessorSupport>

宏

QT_STRINGIFY(arg)
Q_UNUSED(name)

详细说明

宏文档

QT_STRINGIFY(arg)

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

Q_UNUSED(name)

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

© 2026 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.