Sur cette page

QQmlSA::LoggerWarningId Class

class QQmlSA::LoggerWarningId

Un objet encapsulant une chaîne littérale permettant d'identifier de manière unique les catégories d'avertissements dans le framework QQmlSA. En savoir plus...

En-tête : #include <qqmljsloggingutils.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Statut : Aperçu technologique

Cette classe est en préversion technologique et est susceptible d’évoluer.

Fonctions publiques

LoggerWarningId(QAnyStringView name)
QAnyStringView name() const

Description détaillée

Documentation des fonctions de membre

[constexpr] LoggerWarningId::LoggerWarningId(QAnyStringView name)

Crée un objet `LoggerWarningId` avec le nom de catégorie de journalisation « name ».

QAnyStringView LoggerWarningId::name() const

Renvoie le nom de la catégorie d'avertissement encapsulée.

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