详细描述
-
class
PySide.QtCore.
QXmlStreamAttributes
-
class
PySide.QtCore.
QXmlStreamAttributes
(
QXmlStreamAttributes
)
-
-
PySide.QtCore.QXmlStreamAttributes.
alignOfTypedData
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
append
(
attribute
)
-
Appends the given
attribute
to the end of the vector.
-
PySide.QtCore.QXmlStreamAttributes.
append
(
qualifiedName
,
value
)
-
|
参数:
|
-
qualifiedName
– unicode
-
value
– unicode
|
这是重载函数。
Appends a new attribute with qualified name
qualifiedName
and value
value
.
-
PySide.QtCore.QXmlStreamAttributes.
append
(
namespaceUri
,
name
,
value
)
-
|
参数:
|
-
namespaceUri
– unicode
-
name
– unicode
-
value
– unicode
|
Appends a new attribute with
name
in the namespace described with
namespaceUri
, and value
value
。
namespaceUri
can be empty.
-
PySide.QtCore.QXmlStreamAttributes.
at
(
i
)
-
-
PySide.QtCore.QXmlStreamAttributes.
capacity
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
clear
(
)
-
PySide.QtCore.QXmlStreamAttributes.
constData
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
contains
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
count
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
count
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
data
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
detach_helper
(
)
-
PySide.QtCore.QXmlStreamAttributes.
empty
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
endsWith
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
erase
(
abegin
,
aend
)
-
-
PySide.QtCore.QXmlStreamAttributes.
fill
(
t
[
,
size=-1
]
)
-
-
PySide.QtCore.QXmlStreamAttributes.
first
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
front
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
hasAttribute
(
qualifiedName
)
-
|
参数:
|
qualifiedName
– unicode
|
|
返回类型:
|
PySide.QtCore.bool
|
返回 true,若此
PySide.QtCore.QXmlStreamAttributes
has an attribute whose qualified name is
qualifiedName
;否则返回 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.
-
PySide.QtCore.QXmlStreamAttributes.
hasAttribute
(
namespaceUri
,
name
)
-
|
参数:
|
-
namespaceUri
– unicode
-
name
– unicode
|
|
返回类型:
|
PySide.QtCore.bool
|
这是重载函数。
返回 true,若此
PySide.QtCore.QXmlStreamAttributes
has an attribute whose namespace URI and name correspond to
namespaceUri
and
name
;否则返回 false。
-
PySide.QtCore.QXmlStreamAttributes.
indexOf
(
t
[
,
from=0
]
)
-
|
参数:
|
|
|
返回类型:
|
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
insert
(
i
,
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
insert
(
i
,
n
,
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
insert
(
before
,
n
,
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
isEmpty
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
isSharedWith
(
other
)
-
|
参数:
|
other
–
|
|
返回类型:
|
PySide.QtCore.bool
|
-
PySide.QtCore.QXmlStreamAttributes.
last
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
lastIndexOf
(
t
[
,
from=-1
]
)
-
|
参数:
|
|
|
返回类型:
|
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
mid
(
pos
[
,
length=-1
]
)
-
|
参数:
|
-
pos
–
PySide.QtCore.int
-
length
–
PySide.QtCore.int
|
|
返回类型:
|
|
-
PySide.QtCore.QXmlStreamAttributes.
__ne__
(
v
)
-
|
参数:
|
v
–
|
|
返回类型:
|
PySide.QtCore.bool
|
-
PySide.QtCore.QXmlStreamAttributes.
__add__
(
l
)
-
-
PySide.QtCore.QXmlStreamAttributes.
__iadd__
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
__lshift__
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
__lshift__
(
l
)
-
-
PySide.QtCore.QXmlStreamAttributes.
__eq__
(
v
)
-
|
参数:
|
v
–
|
|
返回类型:
|
PySide.QtCore.bool
|
-
PySide.QtCore.QXmlStreamAttributes.operator[](i)
-
-
PySide.QtCore.QXmlStreamAttributes.
prepend
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
realloc
(
size
,
alloc
)
-
|
参数:
|
-
size
–
PySide.QtCore.int
-
alloc
–
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
remove
(
i
)
-
|
参数:
|
i
–
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
remove
(
i
,
n
)
-
|
参数:
|
-
i
–
PySide.QtCore.int
-
n
–
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
replace
(
i
,
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
reserve
(
size
)
-
|
参数:
|
size
–
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
resize
(
size
)
-
|
参数:
|
size
–
PySide.QtCore.int
|
-
PySide.QtCore.QXmlStreamAttributes.
setSharable
(
sharable
)
-
|
参数:
|
sharable
–
PySide.QtCore.bool
|
-
PySide.QtCore.QXmlStreamAttributes.
size
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
sizeOfTypedData
(
)
-
-
PySide.QtCore.QXmlStreamAttributes.
squeeze
(
)
-
PySide.QtCore.QXmlStreamAttributes.
startsWith
(
t
)
-
-
PySide.QtCore.QXmlStreamAttributes.
swap
(
other
)
-
-
PySide.QtCore.QXmlStreamAttributes.
value
(
namespaceUri
,
name
)
-
|
参数:
|
-
namespaceUri
– unicode
-
name
– unicode
|
|
返回类型:
|
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.
-
PySide.QtCore.QXmlStreamAttributes.
value
(
qualifiedName
)
-
|
参数:
|
qualifiedName
– unicode
|
|
返回类型:
|
PySide.QtCore.QStringRef
|
这是重载函数。
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.