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 QXmlStreamAttributes

QXmlStreamAttributes(QXmlStreamAttributes)

param QXmlStreamAttributes

QXmlStreamAttributes

A constructor for QXmlStreamAttributes .

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

  • value – unicode

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 – unicode

  • name – unicode

  • value – unicode

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

iint

Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.back()
Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.capacity()
Return type

int

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

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.constFirst()
Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.constLast()
Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.contains(t)
Parameters

tQXmlStreamAttribute

Return type

bool

PySide2.QtCore.QXmlStreamAttributes.count()
Return type

int

PySide2.QtCore.QXmlStreamAttributes.count(t)
Parameters

tQXmlStreamAttribute

Return type

int

PySide2.QtCore.QXmlStreamAttributes.data()
Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.empty()
Return type

bool

PySide2.QtCore.QXmlStreamAttributes.endsWith(t)
Parameters

tQXmlStreamAttribute

Return type

bool

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

PySide2.QtCore.QXmlStreamAttributes.first()
Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.front()
Return type

QXmlStreamAttribute

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

  • name – unicode

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 – unicode

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

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
  • posint

  • lenint

Return type

PySide2.QtCore.QXmlStreamAttributes.move(from, to)
Parameters
  • fromint

  • toint

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

tQXmlStreamAttribute

Return type

PySide2.QtCore.QXmlStreamAttributes.__iadd__(t)
Parameters

tQXmlStreamAttribute

Return type

PySide2.QtCore.QXmlStreamAttributes.__lshift__(t)
Parameters

tQXmlStreamAttribute

Return type

PySide2.QtCore.QXmlStreamAttributes.__lshift__(t)
Parameters

tQXmlStreamAttribute

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

iint

Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.prepend(t)
Parameters

tQXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.prepend(t)
Parameters

tQXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.push_back(t)
Parameters

tQXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.push_front(t)
Parameters

tQXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.remove(i, n)
Parameters
  • iint

  • nint

PySide2.QtCore.QXmlStreamAttributes.remove(i)
Parameters

iint

PySide2.QtCore.QXmlStreamAttributes.removeAll(t)
Parameters

tQXmlStreamAttribute

Return type

int

PySide2.QtCore.QXmlStreamAttributes.removeAt(i)
Parameters

iint

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

tQXmlStreamAttribute

Return type

bool

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

sizeint

PySide2.QtCore.QXmlStreamAttributes.resize(size)
Parameters

sizeint

PySide2.QtCore.QXmlStreamAttributes.setSharable(sharable)
Parameters

sharablebool

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

int

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

tQXmlStreamAttribute

Return type

bool

PySide2.QtCore.QXmlStreamAttributes.swap(other)
Parameters

other

PySide2.QtCore.QXmlStreamAttributes.takeAt(i)
Parameters

iint

Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.takeFirst()
Return type

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes.takeLast()
Return type

QXmlStreamAttribute

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

  • name – unicode

Return type

QStringRef

PySide2.QtCore.QXmlStreamAttributes.value(qualifiedName)
Parameters

qualifiedName – unicode

Return type

QStringRef