QXmlStreamAttributes

The QXmlStreamAttributes class represents a vector of QXmlStreamAttribute . More

Inheritance diagram of PySide2.QtCore.QXmlStreamAttributes

Synopsis

Functions

Detailed Description

Attributes are returned by a QXmlStreamReader in attributes() when the reader reports a start element . The class can also be used with a QXmlStreamWriter as an argument to writeAttributes() .

The convenience function 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 append() .

class PySide2.QtCore.QXmlStreamAttributes

PySide2.QtCore.QXmlStreamAttributes(QXmlStreamAttributes)

param QXmlStreamAttributes:

PySide2.QtCore.QXmlStreamAttributes

A constructor for QXmlStreamAttributes .

PySide2.QtCore.QXmlStreamAttributes.append(qualifiedName, value)
Parameters:
  • qualifiedName – str

  • value – str

This is an overloaded function.

Appends a new attribute with qualified name qualifiedName and value value .

PySide2.QtCore.QXmlStreamAttributes.append(namespaceUri, name, value)
Parameters:
  • namespaceUri – str

  • name – str

  • value – str

Appends a new attribute with name in the namespace described with namespaceUri , and value value . The namespaceUri can be empty.

PySide2.QtCore.QXmlStreamAttributes.at(i)
Parameters:

i – int

Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.back()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.capacity()
Return type:

int

PySide2.QtCore.QXmlStreamAttributes.clear()
PySide2.QtCore.QXmlStreamAttributes.constData()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.constFirst()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.constLast()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.contains(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.count()
Return type:

int

PySide2.QtCore.QXmlStreamAttributes.count(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

int

PySide2.QtCore.QXmlStreamAttributes.data()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.empty()
Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.endsWith(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.fill(t[, size=-1])
Parameters:
Return type:

PySide2.QtCore.QXmlStreamAttributes.first()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.front()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.hasAttribute(namespaceUri, name)
Parameters:
  • namespaceUri – str

  • name – str

Return type:

bool

This is an overloaded function.

Returns true if this QXmlStreamAttributes has an attribute whose namespace URI and name correspond to namespaceUri and name ; otherwise returns false .

PySide2.QtCore.QXmlStreamAttributes.hasAttribute(qualifiedName)
Parameters:

qualifiedName – str

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.indexOf(t[, from=0])
Parameters:
Return type:

int

PySide2.QtCore.QXmlStreamAttributes.insert(i, t)
Parameters:
PySide2.QtCore.QXmlStreamAttributes.insert(i, t)
Parameters:
PySide2.QtCore.QXmlStreamAttributes.insert(i, n, t)
Parameters:
PySide2.QtCore.QXmlStreamAttributes.isEmpty()
Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.isSharedWith(other)
Parameters:

other

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.last()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.lastIndexOf(t[, from=-1])
Parameters:
Return type:

int

PySide2.QtCore.QXmlStreamAttributes.length()
Return type:

int

PySide2.QtCore.QXmlStreamAttributes.mid(pos[, len=-1])
Parameters:
  • pos – int

  • len – int

Return type:

PySide2.QtCore.QXmlStreamAttributes.move(from, to)
Parameters:
  • from – int

  • to – int

PySide2.QtCore.QXmlStreamAttributes.__ne__(v)
Parameters:

v

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.__add__(l)
Parameters:

l

Return type:

PySide2.QtCore.QXmlStreamAttributes.__iadd__(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

PySide2.QtCore.QXmlStreamAttributes.__iadd__(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

PySide2.QtCore.QXmlStreamAttributes.__lshift__(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

PySide2.QtCore.QXmlStreamAttributes.__lshift__(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

PySide2.QtCore.QXmlStreamAttributes.__lshift__(l)
Parameters:

l

Return type:

PySide2.QtCore.QXmlStreamAttributes.__eq__(v)
Parameters:

v

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.operator[](i)
Parameters:

i – int

Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.prepend(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.prepend(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.push_back(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.push_front(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.remove(i, n)
Parameters:
  • i – int

  • n – int

PySide2.QtCore.QXmlStreamAttributes.remove(i)
Parameters:

i – int

PySide2.QtCore.QXmlStreamAttributes.removeAll(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

int

PySide2.QtCore.QXmlStreamAttributes.removeAt(i)
Parameters:

i – int

PySide2.QtCore.QXmlStreamAttributes.removeFirst()
PySide2.QtCore.QXmlStreamAttributes.removeLast()
PySide2.QtCore.QXmlStreamAttributes.removeOne(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.replace(i, t)
Parameters:
PySide2.QtCore.QXmlStreamAttributes.reserve(size)
Parameters:

size – int

PySide2.QtCore.QXmlStreamAttributes.resize(size)
Parameters:

size – int

PySide2.QtCore.QXmlStreamAttributes.setSharable(sharable)
Parameters:

sharable – bool

PySide2.QtCore.QXmlStreamAttributes.shrink_to_fit()
PySide2.QtCore.QXmlStreamAttributes.size()
Return type:

int

PySide2.QtCore.QXmlStreamAttributes.squeeze()
PySide2.QtCore.QXmlStreamAttributes.startsWith(t)
Parameters:

tPySide2.QtCore.QXmlStreamAttribute

Return type:

bool

PySide2.QtCore.QXmlStreamAttributes.swap(other)
Parameters:

other

PySide2.QtCore.QXmlStreamAttributes.swapItemsAt(i, j)
Parameters:
  • i – int

  • j – int

PySide2.QtCore.QXmlStreamAttributes.takeAt(i)
Parameters:

i – int

Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.takeFirst()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.takeLast()
Return type:

PySide2.QtCore.QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.value(namespaceUri, name)
Parameters:
  • namespaceUri – str

  • name – str

Return type:

QStringRef

PySide2.QtCore.QXmlStreamAttributes.value(qualifiedName)
Parameters:

qualifiedName – str

Return type:

QStringRef