En esta página

QXmlStreamNamespaceDeclaration Class

La clase QXmlStreamNamespaceDeclaration representa una declaración de espacio de nombres. Más...

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

Esta clase es igual-comparable.

Nota: Todas las funciones de esta clase son reentrantes.

Funciones Públicas

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)

Descripción detallada

Una declaración de espacio de nombres consiste en un prefix() y un namespaceUri().

Documentación de funciones miembro

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()

Crea una declaración de espacio de nombres vacía.

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

Crea una declaración de espacio de nombres con prefix y namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::namespaceUri() const

Devuelve el namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::prefix() const

Devuelve el prefijo.

No miembros relacionados

QXmlStreamNamespaceDeclarations

Sinónimo de QList<QXmlStreamNamespaceDeclaration>.

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

Compara la declaración del espacio de nombres lhs con rhs y devuelve true si no son iguales; en caso contrario devuelve false.

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

Compara la declaración del espacio de nombres lhs con rhs y devuelve true si son iguales; en caso contrario devuelve false.

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