QXmlStreamNamespaceDeclaration Class
The QXmlStreamNamespaceDeclaration class represents a namespace declaration. More...
Header: | #include <QXmlStreamNamespaceDeclaration> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
- List of all members, including inherited members
- QXmlStreamNamespaceDeclaration is part of XML Classes.
This class is equality-comparable.
Note: All functions in this class are reentrant.
Public Functions
QXmlStreamNamespaceDeclaration() | |
QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri) | |
QStringView | namespaceUri() const |
QStringView | prefix() const |
Related Non-Members
QXmlStreamNamespaceDeclarations | |
bool | operator!=(const QXmlStreamNamespaceDeclaration &lhs, const QXmlStreamNamespaceDeclaration &rhs) |
bool | operator==(const QXmlStreamNamespaceDeclaration &lhs, const QXmlStreamNamespaceDeclaration &rhs) |
Detailed Description
An namespace declaration consists of a prefix() and a namespaceUri().
Member Function Documentation
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.
Related Non-Members
QXmlStreamNamespaceDeclarations
Synonym for QList<QXmlStreamNamespaceDeclaration>.
[noexcept]
bool operator!=(const QXmlStreamNamespaceDeclaration &lhs, const QXmlStreamNamespaceDeclaration &rhs)
Compares lhs namespace declaration with rhs and returns true
if they are not equal; otherwise returns false
.
[noexcept]
bool operator==(const QXmlStreamNamespaceDeclaration &lhs, const QXmlStreamNamespaceDeclaration &rhs)
Compares lhs namespace declaration with rhs and returns true
if they are equal; otherwise returns false
.
© 2024 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.