<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之旅 廣告
                # QWebElementCollection Class Reference ## [[QtWebKit](index.htm) module] 該QWebElementCollection類表示網絡元素的集合。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QWebElement?contextElement, QString?query)` * `__init__ (self, QWebElementCollection)` * `append (self, QWebElementCollection?collection)` * `QWebElement at (self, int?i)` * `int count (self)` * `QWebElement first (self)` * `QWebElement last (self)` * `list-of-QWebElement toList (self)` ### Special Methods * `QWebElementCollection __add__ (self, QWebElementCollection?other)` * `QWebElement __getitem__ (self, int?i)` * `QWebElementCollection __iadd__ (self, QWebElementCollection?other)` * `__len__ (self)` * * * ## Detailed Description 該QWebElementCollection類表示網絡元素的集合。 在一個文檔元素可以使用被選擇[QWebElement.findAll](qwebelement.html#findAll)() ,或使用[QWebElement](qwebelement.html)構造函數。該集合是通過選擇符合指定CSS選擇器表達式,文檔中的所有元素組成的。 選擇的元素的數目是通過提供[count](qwebelementcollection.html#count)()屬性。單個元素可以通過使用索引來檢索[at](qwebelementcollection.html#at)( ) 。 它也可以遍歷使用Qt的foreach宏集合中的所有元素: ``` QWebElementCollection collection = document.findAll("p"); foreach ([QWebElement](qwebelement.html) paraElement, collection) { ... } ``` * * * ## Method Documentation ``` QWebElementCollection.__init__ (self) ``` 構造一個空的集合。 ``` QWebElementCollection.__init__ (self, QWebElement?contextElement, QString?query) ``` 從構造的子元素的列表元素的集合_contextElement_匹配指定CSS選擇器_query_。 ``` QWebElementCollection.__init__ (self, QWebElementCollection) ``` 構造的副本_other_。 ``` QWebElementCollection.append (self, QWebElementCollection?collection) ``` 通過附加的所有項目擴展集合_other_。 結果集合可能包含重復的元素。 **See also** [operator+=](qwebelementcollection.html#operator-2b-eq)( ) 。 ``` QWebElement QWebElementCollection.at (self, int?i) ``` [ 返回元素的索引位置_i_在該集合中。 ``` int QWebElementCollection.count (self) ``` 返回集合中的元素數目。 ](qwebelement.html) ``` QWebElement QWebElementCollection.first (self) ``` [ 返回集合中的第一個元素。 ](qwebelement.html) [**See also**](qwebelement.html) [last](qwebelementcollection.html#last)( )[operator[]](qwebelementcollection.html#operator-5b-5d)( )[at](qwebelementcollection.html#at)()和[count](qwebelementcollection.html#count)( ) 。 ``` QWebElement QWebElementCollection.last (self) ``` [ 返回集合中的最后一個元素。 ](qwebelement.html) [**See also**](qwebelement.html) [first](qwebelementcollection.html#first)( )[operator[]](qwebelementcollection.html#operator-5b-5d)( )[at](qwebelementcollection.html#at)()和[count](qwebelementcollection.html#count)( ) 。 ``` list-of-QWebElement QWebElementCollection.toList (self) ``` 返回[QList](index.htm)對象包含在這個集合中的元素。 ``` QWebElementCollection QWebElementCollection.__add__ (self, QWebElementCollection?other) ``` [](qwebelementcollection.html) ``` QWebElement QWebElementCollection.__getitem__ (self, int?i) ``` [](qwebelement.html) ``` QWebElementCollection QWebElementCollection.__iadd__ (self, QWebElementCollection?other) ``` [ ``` QWebElementCollection.__len__ (self) ``` ](qwebelementcollection.html)
                  <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>

                              哎呀哎呀视频在线观看