QQmlSA::LoggerWarningId Class
class QQmlSA::LoggerWarningId一个围绕字符串字面量构建的包装器,用于在QQmlSA 框架中唯一标识警告类别。更多内容...
| 头文件: | #include <qqmljsloggingutils.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| 状态: | 技术预览 |
该类处于技术预览阶段,内容可能会有变动。
公共函数
| LoggerWarningId(QAnyStringView name) | |
| QAnyStringView | name() const |
成员函数文档
[constexpr] LoggerWarningId::LoggerWarningId(QAnyStringView name)
创建一个 LoggerWarningId 对象,其日志类别名称为name 。
QAnyStringView LoggerWarningId::name() const
返回被封装的警告类别的名称。
© 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.