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
bool operator!= (const QXmlStreamNamespaceDeclaration & other ) const
bool operator== (const QXmlStreamNamespaceDeclaration & other ) const
QXmlStreamNamespaceDeclarations

详细描述

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.

bool QXmlStreamNamespaceDeclaration:: operator!= (const QXmlStreamNamespaceDeclaration & other ) const

Compares this namespace declaration with other 并返回 true if they are not equal; otherwise returns false .

bool QXmlStreamNamespaceDeclaration:: operator== (const QXmlStreamNamespaceDeclaration & other ) const

Compares this namespace declaration with other 并返回 true if they are equal; otherwise returns false .

相关非成员

QXmlStreamNamespaceDeclarations

同义词 QList < QXmlStreamNamespaceDeclaration >.