
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQXmlStreamAttribute class represents a single XML attributeMore...
| Header: | #include <QXmlStreamAttribute> |
| Since: | Qt 4.3 |
Note: All functions in this class arereentrant.
| QXmlStreamAttribute() | |
| QXmlStreamAttribute(const QString & qualifiedName, const QString & value) | |
| QXmlStreamAttribute(const QString & namespaceUri, const QString & name, const QString & value) | |
| QXmlStreamAttribute(const QXmlStreamAttribute & other) | |
| ~QXmlStreamAttribute() | |
| bool | isDefault() const |
| QStringRef | name() const |
| QStringRef | namespaceUri() const |
| QStringRef | prefix() const |
| QStringRef | qualifiedName() const |
| QStringRef | value() const |
| bool | operator!=(const QXmlStreamAttribute & other) const |
| QXmlStreamAttribute & | operator=(const QXmlStreamAttribute & other) |
| bool | operator==(const QXmlStreamAttribute & other) const |
TheQXmlStreamAttribute class represents a single XML attribute
An attribute consists of an optionally emptynamespaceUri(), aname(), avalue(), and anisDefault() attribute.
The raw XML attribute name is returned asqualifiedName().
Creates an empty attribute.
Constructs an attribute with qualified namequalifiedName and valuevalue.
Constructs an attribute in the namespace described withnamespaceUri withname and valuevalue.
Creates a copy ofother.
Destructs an attribute.
Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false.
Returns the attribute's local name.
Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.
Returns the attribute's namespace prefix.
This function was introduced in Qt 4.4.
See alsoname() andqualifiedName().
Returns the attribute's qualified name.
A qualified name is the raw name of an attribute in the XML data. It consists of the namespaceprefix(), followed by colon, followed by the attribute's localname(). Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use qualifiedName(), but the resolvednamespaceUri() and the attribute's localname().
Returns the attribute's value.
Compares this attribute withother and returns true if they are not equal; otherwise returns false.
Assignsother to this attribute.
Compares this attribute withother and returns true if they are equal; otherwise returns false.
© 2016 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 theGNU 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.