<QtPreprocessorSupport> Proxy-Seite

Makros

QT_STRINGIFY(arg)
Q_UNUSED(name)

Makro-Dokumentation

QT_STRINGIFY(arg)

Das Makro kann verwendet werden, um den eingebauten Zeilenexpander arg in ein Stringliteral zu verwandeln.

Q_UNUSED(name)

Zeigt dem Compiler an, dass der Parameter mit dem angegebenen name nicht im Körper einer Funktion verwendet wird. Dies kann verwendet werden, um Compiler-Warnungen zu unterdrücken und gleichzeitig die Definition von Funktionen mit sinnvollen Parameternamen in ihren Signaturen zu ermöglichen.

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