QXmlStreamAttributes¶
The
QXmlStreamAttributes
class represents a vector ofQXmlStreamAttribute
. More…
Synopsis¶
Functions¶
def
__add__
(l)def
__eq__
(v)def
__iadd__
(t)def
__iadd__
(t)def
__lshift__
(l)def
__lshift__
(t)def
__lshift__
(t)def
__ne__
(v)def
append
(namespaceUri, name, value)def
append
(qualifiedName, value)def
at
(i)def
back
()def
capacity
()def
clear
()def
constData
()def
constFirst
()def
constLast
()def
contains
(t)def
count
()def
count
(t)def
data
()def
empty
()def
endsWith
(t)def
fill
(t[, size=-1])def
first
()def
front
()def
hasAttribute
(namespaceUri, name)def
hasAttribute
(qualifiedName)def
indexOf
(t[, from=0])def
insert
(i, n, t)def
insert
(i, t)def
insert
(i, t)def
isEmpty
()def
isSharedWith
(other)def
last
()def
lastIndexOf
(t[, from=-1])def
length
()def
mid
(pos[, len=-1])def
move
(from, to)def
operator[]
(i)def
prepend
(t)def
prepend
(t)def
push_back
(t)def
push_front
(t)def
remove
(i)def
remove
(i, n)def
removeAll
(t)def
removeAt
(i)def
removeFirst
()def
removeLast
()def
removeOne
(t)def
replace
(i, t)def
reserve
(size)def
resize
(size)def
setSharable
(sharable)def
shrink_to_fit
()def
size
()def
squeeze
()def
startsWith
(t)def
swap
(other)def
swapItemsAt
(i, j)def
takeAt
(i)def
takeFirst
()def
takeLast
()def
value
(namespaceUri, name)def
value
(qualifiedName)
Detailed Description¶
Attributes are returned by a
QXmlStreamReader
inattributes()
when the reader reports astart element
. The class can also be used with aQXmlStreamWriter
as an argument towriteAttributes()
.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:
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 valuevalue
.
- PySide2.QtCore.QXmlStreamAttributes.append(namespaceUri, name, value)
- Parameters:
namespaceUri – str
name – str
value – str
Appends a new attribute with
name
in the namespace described withnamespaceUri
, and valuevalue
. ThenamespaceUri
can be empty.
- PySide2.QtCore.QXmlStreamAttributes.at(i)¶
- Parameters:
i – int
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.back()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.capacity()¶
- Return type:
int
- PySide2.QtCore.QXmlStreamAttributes.clear()¶
- PySide2.QtCore.QXmlStreamAttributes.constData()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.constFirst()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.constLast()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.contains(t)¶
- Parameters:
- Return type:
bool
- PySide2.QtCore.QXmlStreamAttributes.count()¶
- Return type:
int
- PySide2.QtCore.QXmlStreamAttributes.count(t)
- Parameters:
- Return type:
int
- PySide2.QtCore.QXmlStreamAttributes.data()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.empty()¶
- Return type:
bool
- PySide2.QtCore.QXmlStreamAttributes.endsWith(t)¶
- Parameters:
- Return type:
bool
- PySide2.QtCore.QXmlStreamAttributes.fill(t[, size=-1])¶
- Parameters:
size – int
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.first()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.front()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.hasAttribute(namespaceUri, name)¶
- Parameters:
namespaceUri – str
name – str
- Return type:
bool
This is an overloaded function.
Returns
true
if thisQXmlStreamAttributes
has an attribute whose namespace URI and name correspond tonamespaceUri
andname
; otherwise returnsfalse
.
- PySide2.QtCore.QXmlStreamAttributes.hasAttribute(qualifiedName)
- Parameters:
qualifiedName – str
- Return type:
bool
- PySide2.QtCore.QXmlStreamAttributes.indexOf(t[, from=0])¶
- Parameters:
from – int
- Return type:
int
- PySide2.QtCore.QXmlStreamAttributes.insert(i, t)¶
- Parameters:
i – int
- PySide2.QtCore.QXmlStreamAttributes.insert(i, t)
- Parameters:
i – int
- PySide2.QtCore.QXmlStreamAttributes.insert(i, n, t)
- Parameters:
i – int
n – int
- PySide2.QtCore.QXmlStreamAttributes.isEmpty()¶
- Return type:
bool
- Parameters:
other –
- Return type:
bool
- PySide2.QtCore.QXmlStreamAttributes.last()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.lastIndexOf(t[, from=-1])¶
- Parameters:
from – int
- 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:
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.__iadd__(t)
- Parameters:
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.__lshift__(t)¶
- Parameters:
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.__lshift__(t)
- Parameters:
- 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.QXmlStreamAttributes.prepend(t)¶
- Parameters:
- PySide2.QtCore.QXmlStreamAttributes.prepend(t)
- Parameters:
- PySide2.QtCore.QXmlStreamAttributes.push_back(t)¶
- Parameters:
- PySide2.QtCore.QXmlStreamAttributes.push_front(t)¶
- Parameters:
- 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:
- 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:
- Return type:
bool
- PySide2.QtCore.QXmlStreamAttributes.replace(i, t)¶
- Parameters:
i – int
- 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:
- 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.QXmlStreamAttributes.takeFirst()¶
- Return type:
- PySide2.QtCore.QXmlStreamAttributes.takeLast()¶
- Return type:
- 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
© 2022 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.