Nesta página

QQmlSA::LoggerWarningId Class

class QQmlSA::LoggerWarningId

Um envoltório em torno de um literal de string para identificar de forma exclusiva as categorias de avisos na estrutura do QQmlSA. Mais...

Cabeçalho: #include <qqmljsloggingutils.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Status: Pré-visualização tecnológica

Esta classe está em pré-visualização tecnológica e está sujeita a alterações.

Funções públicas

LoggerWarningId(QAnyStringView name)
QAnyStringView name() const

Descrição detalhada

Documentação da função de membro

[constexpr] LoggerWarningId::LoggerWarningId(QAnyStringView name)

Cria um objeto LoggerWarningId com o nome da categoria de registro “ name ”.

QAnyStringView LoggerWarningId::name() const

Retorna o nome da categoria do aviso encapsulado.

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