• PySide 模块
  • PySide.QtCore
  • 内容表

    上一话题

    QXmlStreamNamespaceDeclaration

    下一话题

    QXmlStreamAttribute

    QXmlStreamAttributes

    概要

    函数

    详细描述

    PySide.QtCore.QXmlStreamAttributes class represents a vector of PySide.QtCore.QXmlStreamAttribute .

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

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

    class PySide.QtCore. QXmlStreamAttributes
    class PySide.QtCore. QXmlStreamAttributes ( QXmlStreamAttributes )
    参数: QXmlStreamAttributes PySide.QtCore.QXmlStreamAttributes
    PySide.QtCore.QXmlStreamAttributes. alignOfTypedData ( )
    返回类型: PySide.QtCore.int
    PySide.QtCore.QXmlStreamAttributes. append ( attribute )
    参数: attribute PySide.QtCore.QXmlStreamAttribute

    Appends the given attribute to the end of the vector.

    另请参阅

    QVector.append()

    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 )
    参数: i PySide.QtCore.int
    返回类型: PySide.QtCore.QXmlStreamAttribute
    PySide.QtCore.QXmlStreamAttributes. capacity ( )
    返回类型: PySide.QtCore.int
    PySide.QtCore.QXmlStreamAttributes. clear ( )
    PySide.QtCore.QXmlStreamAttributes. constData ( )
    返回类型: PySide.QtCore.QXmlStreamAttribute
    PySide.QtCore.QXmlStreamAttributes. contains ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes. count ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    返回类型: PySide.QtCore.int
    PySide.QtCore.QXmlStreamAttributes. count ( )
    返回类型: PySide.QtCore.int
    PySide.QtCore.QXmlStreamAttributes. data ( )
    返回类型: PySide.QtCore.QXmlStreamAttribute
    PySide.QtCore.QXmlStreamAttributes. detach_helper ( )
    PySide.QtCore.QXmlStreamAttributes. empty ( )
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes. endsWith ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes. erase ( abegin , aend )
    参数:
    返回类型:

    PySide.QtCore.QXmlStreamAttribute

    PySide.QtCore.QXmlStreamAttributes. fill ( t [ , size=-1 ] )
    参数:
    返回类型:

    PySide.QtCore.QXmlStreamAttributes. first ( )
    返回类型: PySide.QtCore.QXmlStreamAttribute
    PySide.QtCore.QXmlStreamAttributes. front ( )
    返回类型: PySide.QtCore.QXmlStreamAttribute
    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.QXmlStreamAttribute

    PySide.QtCore.QXmlStreamAttributes. isEmpty ( )
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes. isSharedWith ( other )
    参数: other
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes. last ( )
    返回类型: PySide.QtCore.QXmlStreamAttribute
    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 )
    参数: l
    返回类型:
    PySide.QtCore.QXmlStreamAttributes. __iadd__ ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    返回类型:
    PySide.QtCore.QXmlStreamAttributes. __lshift__ ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    返回类型:
    PySide.QtCore.QXmlStreamAttributes. __lshift__ ( l )
    参数: l
    返回类型:
    PySide.QtCore.QXmlStreamAttributes. __eq__ ( v )
    参数: v
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes.operator[](i)
    参数: i PySide.QtCore.int
    返回类型: PySide.QtCore.QXmlStreamAttribute
    PySide.QtCore.QXmlStreamAttributes. prepend ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    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.int
    PySide.QtCore.QXmlStreamAttributes. sizeOfTypedData ( )
    返回类型: PySide.QtCore.int
    PySide.QtCore.QXmlStreamAttributes. squeeze ( )
    PySide.QtCore.QXmlStreamAttributes. startsWith ( t )
    参数: t PySide.QtCore.QXmlStreamAttribute
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QXmlStreamAttributes. swap ( other )
    参数: 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.