Sur cette page

QXmlStreamNamespaceDeclaration Class

La classe QXmlStreamNamespaceDeclaration représente une déclaration d'espace de noms. Plus d'informations...

En-tête : #include <QXmlStreamNamespaceDeclaration>
CMake : find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake : QT += core

Cette classe est comparable à l'égalité.

Note : Toutes les fonctions de cette classe sont réentrantes.

Fonctions publiques

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)

Description détaillée

Une déclaration d'espace de noms se compose d'un prefix() et d'un namespaceUri().

Documentation sur les fonctions membres

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()

Crée une déclaration d'espace de noms vide.

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

Crée une déclaration d'espace de noms avec prefix et namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::namespaceUri() const

Renvoie le namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::prefix() const

Renvoie le préfixe.

Non-membres apparentés

QXmlStreamNamespaceDeclarations

Synonyme de QList<QXmlStreamNamespaceDeclaration>.

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

Compare la déclaration d'espace de noms lhs avec rhs et renvoie true s'ils ne sont pas égaux ; sinon, renvoie false.

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

Compare la déclaration d'espace de noms lhs avec rhs et renvoie true s'ils sont égaux ; sinon, renvoie 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.