The PySide.QtCore.QXmlStreamAttributes class represents a vector of PySide.QtCore.QXmlStreamAttribute .
Attributes are returned by a PySide.QtCore.QXmlStreamReader in PySide.QtCore.QXmlStreamReader.attributes() when the reader reports a start element . The class can also be used with a PySide.QtCore.QXmlStreamWriter as an argument to PySide.QtCore.QXmlStreamWriter.writeAttributes() .
The convenience function PySide.QtCore.QXmlStreamAttributes.value() loops over the vector and returns an attribute value for a given namespaceUri and an attribute’s name.
New attributes can be added with PySide.QtCore.QXmlStreamAttributes.append() .
Parameters: | QXmlStreamAttributes – PySide.QtCore.QXmlStreamAttributes |
---|
Return type: | PySide.QtCore.int |
---|
Parameters: | attribute – PySide.QtCore.QXmlStreamAttribute |
---|
Appends the given attribute to the end of the vector.
See also
QVector.append()
Parameters: |
|
---|
This is an overloaded function.
Appends a new attribute with qualified name qualifiedName and value value .
Parameters: |
|
---|
Appends a new attribute with name in the namespace described with namespaceUri , and value value . The namespaceUri can be empty.
Parameters: | i – PySide.QtCore.int |
---|---|
Return type: | PySide.QtCore.QXmlStreamAttribute |
Return type: | PySide.QtCore.int |
---|
Return type: | PySide.QtCore.QXmlStreamAttribute |
---|
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|---|
Return type: | PySide.QtCore.bool |
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|---|
Return type: | PySide.QtCore.int |
Return type: | PySide.QtCore.int |
---|
Return type: | PySide.QtCore.QXmlStreamAttribute |
---|
Return type: | PySide.QtCore.bool |
---|
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|---|
Return type: | PySide.QtCore.bool |
Parameters: |
|
---|---|
Return type: |
Parameters: |
|
---|---|
Return type: |
Return type: | PySide.QtCore.QXmlStreamAttribute |
---|
Return type: | PySide.QtCore.QXmlStreamAttribute |
---|
Parameters: | qualifiedName – unicode |
---|---|
Return type: | PySide.QtCore.bool |
Returns true if this PySide.QtCore.QXmlStreamAttributes has an attribute whose qualified name is qualifiedName ; otherwise returns false.
Note that this is not namespace aware. For instance, if this PySide.QtCore.QXmlStreamAttributes contains an attribute whose lexical name is “xlink:href” this doesn’t tell that an attribute named href in the XLink namespace is present, since the xlink prefix can be bound to any namespace. Use the overload that takes a namespace URI and a local name as parameter, for namespace aware code.
Parameters: |
|
---|---|
Return type: | PySide.QtCore.bool |
This is an overloaded function.
Returns true if this PySide.QtCore.QXmlStreamAttributes has an attribute whose namespace URI and name correspond to namespaceUri and name ; otherwise returns false.
Parameters: |
|
---|---|
Return type: | PySide.QtCore.int |
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|---|
Return type: |
Return type: | PySide.QtCore.bool |
---|
Parameters: | other – |
---|---|
Return type: | PySide.QtCore.bool |
Return type: | PySide.QtCore.QXmlStreamAttribute |
---|
Parameters: |
|
---|---|
Return type: | PySide.QtCore.int |
Parameters: |
|
---|---|
Return type: |
Parameters: | v – |
---|---|
Return type: | PySide.QtCore.bool |
Parameters: | l – |
---|---|
Return type: |
Parameters: | l – |
---|---|
Return type: |
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|---|
Return type: |
Parameters: | l – |
---|---|
Return type: |
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|---|
Return type: |
Parameters: | l – |
---|---|
Return type: |
Parameters: | v – |
---|---|
Return type: | PySide.QtCore.bool |
Parameters: | i – PySide.QtCore.int |
---|---|
Return type: | PySide.QtCore.QXmlStreamAttribute |
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: | i – PySide.QtCore.int |
---|
Parameters: |
|
---|
Parameters: | size – PySide.QtCore.int |
---|
Parameters: | size – PySide.QtCore.int |
---|
Parameters: | sharable – PySide.QtCore.bool |
---|
Return type: | PySide.QtCore.int |
---|
Return type: | PySide.QtCore.int |
---|
Parameters: | t – PySide.QtCore.QXmlStreamAttribute |
---|---|
Return type: | PySide.QtCore.bool |
Parameters: |
|
---|---|
Return type: | PySide.QtCore.QStringRef |
Returns the value of the attribute name in the namespace described with namespaceUri , or an empty string reference if the attribute is not defined. The namespaceUri can be empty.
Parameters: | qualifiedName – unicode |
---|---|
Return type: | PySide.QtCore.QStringRef |
This is an overloaded function.
Returns the value of the attribute with qualified name qualifiedName , or an empty string reference if the attribute is not defined. A qualified name is the raw name of an attribute in the XML data. It consists of the namespace prefix, followed by colon, followed by the attribute’s local name. 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 qualified names, but a resolved namespaceUri and the attribute’s local name.