QQmlSA::LoggerWarningId Class

class QQmlSA::LoggerWarningId

A wrapper around a string literal to uniquely identify warning categories in the QQmlSA framework. More...

Header: #include <LoggerWarningId>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Status: Technical Preview

Public Functions

LoggerWarningId(QAnyStringView name)
QAnyStringView name() const

Detailed Description

Member Function Documentation

[constexpr] LoggerWarningId::LoggerWarningId(QAnyStringView name)

Constructs a LoggerWarningId object with logging catergory name name.

QAnyStringView LoggerWarningId::name() const

Returns the name of the wrapped warning category.

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