-
首页
-
PyQt 4.11.4
-
所有类
-
模块
QXmlStreamAttributes Class Reference
[
QtCore
module]
QXmlStreamAttributes 类表示向量为
QXmlStreamAttribute
.
更多...
方法
-
__init__
(
self
)
-
__init__
(
self
, QXmlStreamAttributes)
-
append
(
self
, QString
namespaceUri
, QString
name
, QString
value
)
-
append
(
self
, QString
qualifiedName
, QString
value
)
-
append
(
self
, QXmlStreamAttribute
attribute
)
-
QXmlStreamAttribute
at
(
self
, int
i
)
-
clear
(
self
)
-
bool
contains
(
self
, QXmlStreamAttribute
value
)
-
int
count
(
self
, QXmlStreamAttribute
value
)
-
int
count
(
self
)
-
sip.voidptr
data
(
self
)
-
fill
(
self
, QXmlStreamAttribute
value
, int
size
= -1)
-
QXmlStreamAttribute
first
(
self
)
-
bool
hasAttribute
(
self
, QString
qualifiedName
)
-
bool
hasAttribute
(
self
, QString
namespaceUri
, QString
name
)
-
int
indexOf
(
self
, QXmlStreamAttribute
value
, int
from
= 0)
-
insert
(
self
, int
i
, QXmlStreamAttribute
value
)
-
bool
isEmpty
(
self
)
-
QXmlStreamAttribute
last
(
self
)
-
int
lastIndexOf
(
self
, QXmlStreamAttribute
value
, int
from
= -1)
-
prepend
(
self
, QXmlStreamAttribute
value
)
-
remove
(
self
, int
i
)
-
remove
(
self
, int
i
, int
count
)
-
replace
(
self
, int
i
, QXmlStreamAttribute
value
)
-
int
size
(
self
)
-
QStringRef
value
(
self
, QString
namespaceUri
, QString
name
)
-
QStringRef
value
(
self
, QString
qualifiedName
)
Special Methods
-
int
__contains__
(
self
, QXmlStreamAttribute
value
)
-
__delitem__
(
self
, int
i
)
-
__delitem__
(
self
, slice
slice
)
-
bool
__eq__
(
self
, QXmlStreamAttributes
other
)
-
QXmlStreamAttribute
__getitem__
(
self
, int
i
)
-
QXmlStreamAttributes
__getitem__
(
self
, slice
slice
)
-
QXmlStreamAttributes
__iadd__
(
self
, QXmlStreamAttributes
other
)
-
QXmlStreamAttributes
__iadd__
(
self
, QXmlStreamAttribute
value
)
-
__len__
(
self
)
-
bool
__ne__
(
self
, QXmlStreamAttributes
other
)
-
__setitem__
(
self
, int
i
, QXmlStreamAttribute
value
)
-
__setitem__
(
self
, slice
slice
, QXmlStreamAttributes
list
)
详细描述
QXmlStreamAttributes 类表示向量为
QXmlStreamAttribute
.
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
().
方法文档编制
QXmlStreamAttributes.__init__ (
self
)
QXmlStreamAttributes.__init__ (
self
,
QXmlStreamAttributes
)
QXmlStreamAttributes.append (
self
, QString
namespaceUri
, QString
name
, QString
value
)
Appends a new attribute with
name
in the namespace
described with
namespaceUri
, and value
value
。
namespaceUri
can be empty.
QXmlStreamAttributes.append (
self
, QString
qualifiedName
, QString
value
)
Appends the given
attribute
to the end of the vector.
另请参阅
QVector.append
().
QXmlStreamAttributes.append (
self
,
QXmlStreamAttribute
attribute
)
这是重载函数。
Appends a new attribute with qualified name
qualifiedName
and value
value
.
QXmlStreamAttribute
QXmlStreamAttributes.at (
self
, int
i
)
QXmlStreamAttributes.clear (
self
)
bool QXmlStreamAttributes.contains (
self
,
QXmlStreamAttribute
value
)
int QXmlStreamAttributes.count (
self
,
QXmlStreamAttribute
value
)
int QXmlStreamAttributes.count (
self
)
sip.voidptr QXmlStreamAttributes.data (
self
)
QXmlStreamAttributes.fill (
self
,
QXmlStreamAttribute
value
, int
size
= -1)
bool QXmlStreamAttributes.hasAttribute (
self
, QString
qualifiedName
)
返回 true,若此
QXmlStreamAttributes
has an
attribute whose qualified name is
qualifiedName
;否则
returns false.
Note that this is not namespace aware. For instance, if this
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.
该函数在 Qt 4.5 引入。
bool QXmlStreamAttributes.hasAttribute (
self
, QString
namespaceUri
, QString
name
)
这是重载函数。
该函数在 Qt 4.5 引入。
int QXmlStreamAttributes.indexOf (
self
,
QXmlStreamAttribute
value
, int
from
= 0)
QXmlStreamAttributes.insert (
self
, int
i
,
QXmlStreamAttribute
value
)
bool QXmlStreamAttributes.isEmpty (
self
)
int QXmlStreamAttributes.lastIndexOf (
self
,
QXmlStreamAttribute
value
, int
from
= -1)
QXmlStreamAttributes.prepend (
self
,
QXmlStreamAttribute
value
)
QXmlStreamAttributes.remove (
self
, int
i
)
QXmlStreamAttributes.remove (
self
, int
i
, int
count
)
QXmlStreamAttributes.replace (
self
, int
i
,
QXmlStreamAttribute
value
)
int QXmlStreamAttributes.size (
self
)
QStringRef QXmlStreamAttributes.value (
self
, QString
namespaceUri
, QString
name
)
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
可以是
empty.
QStringRef QXmlStreamAttributes.value (
self
, QString
qualifiedName
)
这是重载函数。
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
可以是
empty.
int QXmlStreamAttributes.__contains__ (
self
,
QXmlStreamAttribute
value
)
QXmlStreamAttributes.__delitem__ (
self
, int
i
)
QXmlStreamAttributes.__delitem__ (
self
, slice
slice
)
bool QXmlStreamAttributes.__eq__ (
self
,
QXmlStreamAttributes
other
)
QXmlStreamAttribute
QXmlStreamAttributes.__getitem__ (
self
, int
i
)
QXmlStreamAttributes
QXmlStreamAttributes.__getitem__ (
self
, slice
slice
)
QXmlStreamAttributes.__len__ (
self
)
bool QXmlStreamAttributes.__ne__ (
self
,
QXmlStreamAttributes
other
)
QXmlStreamAttributes.__setitem__ (
self
, int
i
,
QXmlStreamAttribute
value
)
QXmlStreamAttributes.__setitem__ (
self
, slice
slice
,
QXmlStreamAttributes
list
)
-
首页
-
PyQt 4.11.4
-
文档编制