QXmlStreamNamespaceDeclaration 類

QXmlStreamNamespaceDeclaration 類錶示名稱空間聲明。 更多...

頭: #include <QXmlStreamNamespaceDeclaration>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

此類 相等可比較 .

注意: 此類的所有函數 可重入 .

公共函數

QXmlStreamNamespaceDeclaration ()
QXmlStreamNamespaceDeclaration (const QString & prefix , const QString & namespaceUri )
QStringView namespaceUri () const
QStringView prefix () const
QXmlStreamNamespaceDeclarations
bool operator!= (const QXmlStreamNamespaceDeclaration & lhs , const QXmlStreamNamespaceDeclaration & rhs )
bool operator== (const QXmlStreamNamespaceDeclaration & lhs , const QXmlStreamNamespaceDeclaration & rhs )

詳細描述

An namespace declaration consists of a prefix () 和 namespaceUri ().

成員函數文檔編製

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration ()

Creates an empty namespace declaration.

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration (const QString & prefix , const QString & namespaceUri )

Creates a namespace declaration with prefix and namespaceUri .

QStringView QXmlStreamNamespaceDeclaration:: namespaceUri () const

Returns the namespaceUri.

QStringView QXmlStreamNamespaceDeclaration:: prefix () const

Returns the prefix.

相關非成員

QXmlStreamNamespaceDeclarations

同義詞 QList < QXmlStreamNamespaceDeclaration >.

[noexcept] bool operator!= (const QXmlStreamNamespaceDeclaration & lhs , const QXmlStreamNamespaceDeclaration & rhs )

比較 lhs namespace declaration with rhs 並返迴 true 若它們不相等;否則返迴 false .

[noexcept] bool operator== (const QXmlStreamNamespaceDeclaration & lhs , const QXmlStreamNamespaceDeclaration & rhs )

比較 lhs namespace declaration with rhs 並返迴 true 若它們相等;否則返迴 false .