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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QXmlResultItems Class Reference ## [[QtXmlPatterns](index.htm) module] 通過評估的結果QXmlResultItems類的迭代[XQuery](index.htm)在[QXmlQuery](qxmlquery.html)。[More...](#details) ### Methods * `__init__ (self)` * `QXmlItem current (self)` * `bool hasError (self)` * `QXmlItem next (self)` * * * ## Detailed Description 通過評估的結果QXmlResultItems類的迭代[XQuery](index.htm)在[QXmlQuery](qxmlquery.html)。 QXmlResultItems提出了一個相關查詢的評估作為一個序列[QXmlItems](qxmlitem.html)。該序列走過一邊喊[next](qxmlresultitems.html#next)( ) ,查詢懶評估其實際產生的序列。 ``` [QXmlQuery](qxmlquery.html) query; query.setQuery("<e/>, 1, 'two'"); QXmlResultItems result; if (query.isValid()) { query.evaluateTo(&result); [QXmlItem](qxmlitem.html) item(result.next()); while (!item.isNull()) { // use item item = result.next(); } if (result.hasError()) /* Runtime error! */; } ``` 讓的效果[next](qxmlresultitems.html#next)( )由懶惰的評價產生的序列是可以發生在任何調用一個查詢錯誤[next](qxmlresultitems.html#next)( ) 。如果發生錯誤,都[next](qxmlresultitems.html#next)()和[current](qxmlresultitems.html#current)( )將返回空值[QXmlItem](qxmlitem.html)和[hasError](qxmlresultitems.html#hasError)( )將返回True 。 QXmlResultItems可以被認為是一個“迭代”遍歷查詢結果的順序一次,在向前的方向。每次調用[next](qxmlresultitems.html#next)( )前進迭代到下一個[QXmlItem](qxmlitem.html)的序列中,并返回它,并[current](qxmlresultitems.html#current)( )總是返回[QXmlItem](qxmlitem.html)那[next](qxmlresultitems.html#next)( )返回的最后一次被調用。 **Note:**當使用的QXmlResultItems超載[QXmlQuery.evaluateTo](qxmlquery.html#evaluateTo)( )執行查詢,最好是創建這個類的一個新實例為每個新的結果集,而不是重新使用舊的實例。 * * * ## Method Documentation ``` QXmlResultItems.__init__ (self) ``` 構造的一個實例[QXmlResultItems](qxmlresultitems.html)。 ``` QXmlItem QXmlResultItems.current (self) ``` [](qxmlitem.html) [返回當前項目。目前的產品被生產和返回的最后一個項目](qxmlitem.html)[next](qxmlresultitems.html#next)( ) 。 返回一個空[QXmlItem](qxmlitem.html)如果不存在相關聯的[QXmlQuery](qxmlquery.html)。 ``` bool QXmlResultItems.hasError (self) ``` 如果查詢的評估過程中出現錯誤,則返回True 。 返回False,如果查詢評估已經完成。 ``` QXmlItem QXmlResultItems.next (self) ``` [](qxmlitem.html) [返回由相關的查詢懶評估產生的序列中的下一個結果。當返回](qxmlitem.html)[QXmlItem](qxmlitem.html)為null,則評價正常終止,不產生另一種結果,或者發生了錯誤。通話[hasError](qxmlresultitems.html#hasError)()來判斷是否為null項目被正常終止或錯誤導致的。 返回一個空[QXmlItem](qxmlitem.html)如果不存在相關聯的[QXmlQuery](qxmlquery.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>

                              哎呀哎呀视频在线观看