QQmlSA::LoggerWarningId Class

class QQmlSA::LoggerWarningId

QQmlSA 框架中唯一标识警告类别的字符串字面的包装器。更多

头文件: #include <LoggerWarningId>
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

返回包裹的警告类别名称。

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