QQmlSA::LoggerWarningId Class

class QQmlSA ::LoggerWarningId

A wrapper around a string literal to uniquely identify warning categories in the 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 )

Constructs a LoggerWarningId object with logging catergory name name .

QAnyStringView LoggerWarningId:: 名稱 () const

Returns the name of the wrapped warning category.