Nesta página

QXmlStreamNamespaceDeclaration Class

A classe QXmlStreamNamespaceDeclaration representa uma declaração de namespace. Mais...

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

Observação: Todas as funções desta classe são reentrantes.

Comparações da QXmlStreamNamespaceDeclaration

CategoriaTipos comparáveis
igualdadeQXmlStreamNamespaceDeclaration

Funções 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)

Descrição detalhada

Uma declaração de namespace consiste em um ` prefix()` e um ` namespaceUri()`.

Documentação da função de membro

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()

Cria uma declaração de namespace vazio.

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

Cria uma declaração de namespace com prefix e namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::namespaceUri() const

Retorna o namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::prefix() const

Retorna o prefixo.

Não-membros relacionados

QXmlStreamNamespaceDeclarations

Sinônimo de QList<QXmlStreamNamespaceDeclaration>.

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

Compara a declaração do namespace lhs com rhs e retorna true caso não sejam iguais; caso contrário, retorna false.

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

Compara a declaração do namespace lhs com rhs e retorna true se forem iguais; caso contrário, retorna 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.