内容表

上一话题

QXmlStreamAttribute

下一话题

QXmlStreamEntityDeclaration

QXmlStreamAttributes

Inheritance diagram of PySide2.QtCore.QXmlStreamAttributes

概要

函数

详细描述

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 )
参数
  • qualifiedName – unicode

  • value – unicode

这是重载函数。

Appends a new attribute with qualified name qualifiedName and value value .

PySide2.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.

PySide2.QtCore.QXmlStreamAttributes. at ( i )
参数

i int

返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. back ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. capacity ( )
返回类型

int

PySide2.QtCore.QXmlStreamAttributes. clear ( )
PySide2.QtCore.QXmlStreamAttributes. constData ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. constFirst ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. constLast ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. contains ( t )
参数

t QXmlStreamAttribute

返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. count ( )
返回类型

int

PySide2.QtCore.QXmlStreamAttributes. count ( t )
参数

t QXmlStreamAttribute

返回类型

int

PySide2.QtCore.QXmlStreamAttributes. data ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. empty ( )
返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. endsWith ( t )
参数

t QXmlStreamAttribute

返回类型

bool

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

PySide2.QtCore.QXmlStreamAttributes. first ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. front ( )
返回类型

QXmlStreamAttribute

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

  • name – unicode

返回类型

bool

这是重载函数。

返回 true 若此 QXmlStreamAttributes has an attribute whose namespace URI and name correspond to namespaceUri and name ;否则返回 false .

PySide2.QtCore.QXmlStreamAttributes. hasAttribute ( qualifiedName )
参数

qualifiedName – unicode

返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. indexOf ( t [ , from=0 ] )
参数
返回类型

int

PySide2.QtCore.QXmlStreamAttributes. insert ( i , t )
参数
PySide2.QtCore.QXmlStreamAttributes. insert ( i , t )
参数
PySide2.QtCore.QXmlStreamAttributes. insert ( i , n , t )
参数
PySide2.QtCore.QXmlStreamAttributes. isEmpty ( )
返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. isSharedWith ( other )
参数

other

返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. last ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. lastIndexOf ( t [ , from=-1 ] )
参数
返回类型

int

PySide2.QtCore.QXmlStreamAttributes. length ( )
返回类型

int

PySide2.QtCore.QXmlStreamAttributes. mid ( pos [ , len=-1 ] )
参数
  • pos int

  • len int

返回类型

PySide2.QtCore.QXmlStreamAttributes. move ( from , to )
参数
  • from int

  • to int

PySide2.QtCore.QXmlStreamAttributes. __ne__ ( v )
参数

v

返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. __add__ ( l )
参数

l

返回类型

PySide2.QtCore.QXmlStreamAttributes. __iadd__ ( t )
参数

t QXmlStreamAttribute

返回类型

PySide2.QtCore.QXmlStreamAttributes. __iadd__ ( t )
参数

t QXmlStreamAttribute

返回类型

PySide2.QtCore.QXmlStreamAttributes. __lshift__ ( t )
参数

t QXmlStreamAttribute

返回类型

PySide2.QtCore.QXmlStreamAttributes. __lshift__ ( t )
参数

t QXmlStreamAttribute

返回类型

PySide2.QtCore.QXmlStreamAttributes. __lshift__ ( l )
参数

l

返回类型

PySide2.QtCore.QXmlStreamAttributes. __eq__ ( v )
参数

v

返回类型

bool

PySide2.QtCore.QXmlStreamAttributes.operator[](i)
参数

i int

返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. prepend ( t )
参数

t QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. prepend ( t )
参数

t QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. push_back ( t )
参数

t QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. push_front ( t )
参数

t QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. remove ( i , n )
参数
  • i int

  • n int

PySide2.QtCore.QXmlStreamAttributes. remove ( i )
参数

i int

PySide2.QtCore.QXmlStreamAttributes. removeAll ( t )
参数

t QXmlStreamAttribute

返回类型

int

PySide2.QtCore.QXmlStreamAttributes. removeAt ( i )
参数

i int

PySide2.QtCore.QXmlStreamAttributes. removeFirst ( )
PySide2.QtCore.QXmlStreamAttributes. removeLast ( )
PySide2.QtCore.QXmlStreamAttributes. removeOne ( t )
参数

t QXmlStreamAttribute

返回类型

bool

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

size int

PySide2.QtCore.QXmlStreamAttributes. resize ( size )
参数

size int

PySide2.QtCore.QXmlStreamAttributes. setSharable ( sharable )
参数

sharable bool

PySide2.QtCore.QXmlStreamAttributes. shrink_to_fit ( )
PySide2.QtCore.QXmlStreamAttributes. size ( )
返回类型

int

PySide2.QtCore.QXmlStreamAttributes. squeeze ( )
PySide2.QtCore.QXmlStreamAttributes. startsWith ( t )
参数

t QXmlStreamAttribute

返回类型

bool

PySide2.QtCore.QXmlStreamAttributes. swap ( other )
参数

other

PySide2.QtCore.QXmlStreamAttributes. swapItemsAt ( i , j )
参数
  • i int

  • j int

PySide2.QtCore.QXmlStreamAttributes. takeAt ( i )
参数

i int

返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. takeFirst ( )
返回类型

QXmlStreamAttribute

PySide2.QtCore.QXmlStreamAttributes. takeLast ( )
返回类型

QXmlStreamAttribute

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

  • name – unicode

返回类型

QStringRef

PySide2.QtCore.QXmlStreamAttributes. value ( qualifiedName )
参数

qualifiedName – unicode

返回类型

QStringRef