<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # QXmlAttributes Class Reference ## [[QtXml](index.htm) module] 該QXmlAttributes類提供XML屬性。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QXmlAttributes)` * `append (self, QString?qName, QString?uri, QString?localPart, QString?value)` * `clear (self)` * `int count (self)` * `int index (self, QString?qName)` * `int index (self, QString?uri, QString?localPart)` * `int length (self)` * `QString localName (self, int?index)` * `QString qName (self, int?index)` * `QString type (self, int?index)` * `QString type (self, QString?qName)` * `QString type (self, QString?uri, QString?localName)` * `QString uri (self, int?index)` * `QString value (self, int?index)` * `QString value (self, QString?qName)` * `QString value (self, QString?uri, QString?localName)` ### Special Methods * `__len__ (self)` * * * ## Detailed Description 該QXmlAttributes類提供XML屬性。 如果屬性報告[QXmlContentHandler.startElement](qxmlcontenthandler.html#startElement)( )這個類是用來傳遞屬性值。 使用[index](qxmlattributes.html#index)()以在列表中找到的屬性的位置,[count](qxmlattributes.html#count)()來檢索屬性的數量,并[clear](qxmlattributes.html#clear)()刪除的屬性。新的屬性可以被添加[append](qxmlattributes.html#append)( ) 。使用[type](qxmlattributes.html#type)()來獲取一個屬性的類型和[value](qxmlattributes.html#value)()來獲取它的值。屬性的名稱可以從[localName](qxmlattributes.html#localName)()或[qName](qxmlattributes.html#qName)( ),并從它的命名空間URI[uri](qxmlattributes.html#uri)( ) 。 * * * ## Method Documentation ``` QXmlAttributes.__init__ (self) ``` 構造一個空屬性列表。 ``` QXmlAttributes.__init__ (self, QXmlAttributes) ``` ``` QXmlAttributes.append (self, QString?qName, QString?uri, QString?localPart, QString?value) ``` 附加一個新的屬性條目的屬性列表。該屬性的限定名是_qName_,命名空間URI為_uri_和本地名稱是_localPart_。該屬性的值是_value_。 **See also** [qName](qxmlattributes.html#qName)( )[uri](qxmlattributes.html#uri)( )[localName](qxmlattributes.html#localName)()和[value](qxmlattributes.html#value)( ) 。 ``` QXmlAttributes.clear (self) ``` 清除屬性的列表。 **See also** [append](qxmlattributes.html#append)( ) 。 ``` int QXmlAttributes.count (self) ``` 返回的屬性列表中的號碼。此功能相當于[length](qxmlattributes.html#length)( ) 。 ``` int QXmlAttributes.index (self, QString?qName) ``` 查找屬性的索引的限定名_qName_。 如果它沒有被發現返回屬性或-1的索引。 **See also** [Namespace Support via Features](index.htm#namespace-support-via-features)。 ``` int QXmlAttributes.index (self, QString?uri, QString?localPart) ``` 這是一個重載函數。 ``` int QXmlAttributes.length (self) ``` 返回的屬性列表中的號碼。 **See also** [count](qxmlattributes.html#count)( ) 。 ``` QString QXmlAttributes.localName (self, int?index) ``` 查找的位置屬性的屬性的本地名稱_index_。如果沒有命名空間的處理完成后,本地名稱是空字符串。 **See also** [Namespace Support via Features](index.htm#namespace-support-via-features)。 ``` QString QXmlAttributes.qName (self, int?index) ``` 查找屬性的XML 1.0的位置屬性限定名稱_index_。 **See also** [Namespace Support via Features](index.htm#namespace-support-via-features)。 ``` QString QXmlAttributes.type (self, int?index) ``` 查找一個屬性的類型,位置屬性_index_。 目前,只有“ CDATA ”返回。 ``` QString QXmlAttributes.type (self, QString?qName) ``` 這是一個重載函數。 查找一個屬性的類型為限定名_qName_。 目前,只有“ CDATA ”返回。 ``` QString QXmlAttributes.type (self, QString?uri, QString?localName) ``` 這是一個重載函數。 通過命名空間名稱查找屬性的類型。 _uri_指定命名空間URI和_localName_指定本地名稱。如果該名稱沒有名稱空間URI ,使用空字符串_uri_。 目前,只有“ CDATA ”返回。 ``` QString QXmlAttributes.uri (self, int?index) ``` 查找的位置屬性的屬性的命名空間URI_index_。如果沒有命名空間的處理完成,或者如果屬性沒有命名空間,命名空間URI為空字符串。 **See also** [Namespace Support via Features](index.htm#namespace-support-via-features)。 ``` QString QXmlAttributes.value (self, int?index) ``` 返回在位置屬性的屬性值_index_。索引必須是一個有效的位置(即0 \u003c =_index_\u003c[count](qxmlattributes.html#count)())。 ``` QString QXmlAttributes.value (self, QString?qName) ``` 這是一個重載函數。 返回限定名稱的屬性的值_qName_,或者如果沒有屬性存在給定名稱為空字符串。 **See also** [Namespace Support via Features](index.htm#namespace-support-via-features)。 ``` QString QXmlAttributes.value (self, QString?uri, QString?localName) ``` 這是一個重載函數。 返回限定名稱的屬性的值_qName_,或者如果沒有屬性存在給定名稱為空字符串。 **See also** [Namespace Support via Features](index.htm#namespace-support-via-features)。 ``` QXmlAttributes.__len__ (self) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看