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

    上一话题

    QXmlStreamAttributes

    下一话题

    QWaitCondition

    QXmlStreamAttribute

    概要

    函数

    详细描述

    class PySide.QtCore. QXmlStreamAttribute
    class PySide.QtCore. QXmlStreamAttribute ( namespaceUri , name , value )
    class PySide.QtCore. QXmlStreamAttribute ( qualifiedName , value )
    class PySide.QtCore. QXmlStreamAttribute ( arg__1 )
    参数:

    Creates an empty attribute.

    Constructs an attribute in the namespace described with namespaceUri with name and value value .

    Constructs an attribute with qualified name qualifiedName and value value .

    Creates a copy of other .

    PySide.QtCore.QXmlStreamAttribute. isDefault ( )
    返回类型: PySide.QtCore.bool

    Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false.

    PySide.QtCore.QXmlStreamAttribute. name ( )
    返回类型: PySide.QtCore.QStringRef

    Returns the attribute's local name.

    PySide.QtCore.QXmlStreamAttribute. namespaceUri ( )
    返回类型: PySide.QtCore.QStringRef

    Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.

    PySide.QtCore.QXmlStreamAttribute. __ne__ ( other )
    参数: other PySide.QtCore.QXmlStreamAttribute
    返回类型: PySide.QtCore.bool

    Compares this attribute with other and returns true if they are not equal; otherwise returns false.

    PySide.QtCore.QXmlStreamAttribute. __eq__ ( other )
    参数: other PySide.QtCore.QXmlStreamAttribute
    返回类型: PySide.QtCore.bool

    Compares this attribute with other and returns true if they are equal; otherwise returns false.

    PySide.QtCore.QXmlStreamAttribute. prefix ( )
    返回类型: PySide.QtCore.QStringRef

    Returns the attribute's namespace prefix.

    PySide.QtCore.QXmlStreamAttribute. qualifiedName ( )
    返回类型: PySide.QtCore.QStringRef

    Returns the attribute's qualified name.

    A qualified name is the raw name of an attribute in the XML data. It consists of the namespace PySide.QtCore.QXmlStreamAttribute.prefix() , followed by colon, followed by the attribute's local PySide.QtCore.QXmlStreamAttribute.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 PySide.QtCore.QXmlStreamAttribute.qualifiedName() , but the resolved PySide.QtCore.QXmlStreamAttribute.namespaceUri() and the attribute's local PySide.QtCore.QXmlStreamAttribute.name() .

    PySide.QtCore.QXmlStreamAttribute. value ( )
    返回类型: PySide.QtCore.QStringRef

    Returns the attribute's value.