Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 4712

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdom.cpp -->
  <title>QDomNodeList Class | Qt XML 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtxml-index.html">Qt XML</a></td><td ><a href="qtxml-module.html">C++ Classes</a></td><td >QDomNodeList</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QDomNodeList Class</h1>
<!-- $$$QDomNodeList-brief -->
<p>The <a href="qdomnodelist.html">QDomNodeList</a> class is a list of <a href="qdomnode.html">QDomNode</a> objects. <a href="#details">More...</a></p>
<!-- @@@QDomNodeList -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QDomNodeList&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += xml</td></tr></table></div><ul>
<li><a href="qdomnodelist-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are reentrant.</p>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#QDomNodeList">QDomNodeList</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#QDomNodeList-1">QDomNodeList</a></b>(const QDomNodeList &amp;<i>n</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#dtor.QDomNodeList">~QDomNodeList</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDomNode </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#at">at</a></b>(int <i>index</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#count">count</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#isEmpty">isEmpty</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDomNode </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#item">item</a></b>(int <i>index</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#length">length</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#size">size</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#operator-not-eq">operator!=</a></b>(const QDomNodeList &amp;<i>n</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDomNodeList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#operator-eq">operator=</a></b>(const QDomNodeList &amp;<i>n</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdomnodelist.html#operator-eq-eq">operator==</a></b>(const QDomNodeList &amp;<i>n</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QDomNodeList-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qdomnodelist.html">QDomNodeList</a> class is a list of <a href="qdomnode.html">QDomNode</a> objects.</p>
<p>Lists can be obtained by <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>() and <a href="qdomnode.html#childNodes">QDomNode::childNodes</a>(). The Document Object Model (DOM) requires these lists to be &quot;live&quot;: whenever you change the underlying document, the contents of the list will get updated.</p>
<p>You can get a particular node from the list with <a href="qdomnodelist.html#item">item</a>(). The number of items in the list is returned by <a href="qdomnodelist.html#length">length</a>().</p>
<p>For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">Level 1</a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">Level 2 Core</a>. For a more general introduction of the DOM implementation see the <a href="qdomdocument.html">QDomDocument</a> documentation.</p>
</div>
<p><b>See also </b><a href="qdomnode.html#childNodes">QDomNode::childNodes</a>() and <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>().</p>
<!-- @@@QDomNodeList -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QDomNodeList[overload1]$$$QDomNodeList -->
<h3 class="fn" id="QDomNodeList"><a name="QDomNodeList"></a>QDomNodeList::<span class="name">QDomNodeList</span>()</h3>
<p>Creates an empty node list.</p>
<!-- @@@QDomNodeList -->
<!-- $$$QDomNodeList$$$QDomNodeListconstQDomNodeList& -->
<h3 class="fn" id="QDomNodeList-1"><a name="QDomNodeList-1"></a>QDomNodeList::<span class="name">QDomNodeList</span>(const <span class="type"><a href="qdomnodelist.html#QDomNodeList">QDomNodeList</a></span> &amp;<i>n</i>)</h3>
<p>Constructs a copy of <i>n</i>.</p>
<!-- @@@QDomNodeList -->
<!-- $$$~QDomNodeList[overload1]$$$~QDomNodeList -->
<h3 class="fn" id="dtor.QDomNodeList"><a name="dtor.QDomNodeList"></a>QDomNodeList::<span class="name">~QDomNodeList</span>()</h3>
<p>Destroys the object and frees its resources.</p>
<!-- @@@~QDomNodeList -->
<!-- $$$at[overload1]$$$atint -->
<h3 class="fn" id="at"><a name="at"></a><span class="type"><a href="qdomnode.html">QDomNode</a></span> QDomNodeList::<span class="name">at</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>This function is provided for Qt API consistency. It is equivalent to <a href="qdomnodelist.html#item">item</a>().</p>
<p>If <i>index</i> is negative or if <i>index</i> &gt;= <a href="qdomnodelist.html#length">length</a>() then a null node is returned (i.e&#x2e; a node for which <a href="qdomnode.html#isNull">QDomNode::isNull</a>() returns true).</p>
<!-- @@@at -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn" id="count"><a name="count"></a><span class="type">int</span> QDomNodeList::<span class="name">count</span>() const</h3>
<p>This function is provided for Qt API consistency. It is equivalent to <a href="qdomnodelist.html#length">length</a>().</p>
<!-- @@@count -->
<!-- $$$isEmpty[overload1]$$$isEmpty -->
<h3 class="fn" id="isEmpty"><a name="isEmpty"></a><span class="type">bool</span> QDomNodeList::<span class="name">isEmpty</span>() const</h3>
<p>Returns <code>true</code> if the list contains no items; otherwise returns <code>false</code>. This function is provided for Qt API consistency.</p>
<!-- @@@isEmpty -->
<!-- $$$item[overload1]$$$itemint -->
<h3 class="fn" id="item"><a name="item"></a><span class="type"><a href="qdomnode.html">QDomNode</a></span> QDomNodeList::<span class="name">item</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>Returns the node at position <i>index</i>.</p>
<p>If <i>index</i> is negative or if <i>index</i> &gt;= <a href="qdomnodelist.html#length">length</a>() then a null node is returned (i.e&#x2e; a node for which <a href="qdomnode.html#isNull">QDomNode::isNull</a>() returns true).</p>
<p><b>See also </b><a href="qdomnodelist.html#length">length</a>().</p>
<!-- @@@item -->
<!-- $$$length[overload1]$$$length -->
<h3 class="fn" id="length"><a name="length"></a><span class="type">int</span> QDomNodeList::<span class="name">length</span>() const</h3>
<p>Returns the number of nodes in the list.</p>
<!-- @@@length -->
<!-- $$$size[overload1]$$$size -->
<h3 class="fn" id="size"><a name="size"></a><span class="type">int</span> QDomNodeList::<span class="name">size</span>() const</h3>
<p>This function is provided for Qt API consistency. It is equivalent to <a href="qdomnodelist.html#length">length</a>().</p>
<!-- @@@size -->
<!-- $$$operator!=[overload1]$$$operator!=constQDomNodeList& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QDomNodeList::<span class="name">operator!=</span>(const <span class="type"><a href="qdomnodelist.html#QDomNodeList">QDomNodeList</a></span> &amp;<i>n</i>) const</h3>
<p>Returns <code>true</code> the node list <i>n</i> and this node list are not equal; otherwise returns <code>false</code>.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQDomNodeList& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qdomnodelist.html#QDomNodeList">QDomNodeList</a></span> &amp;QDomNodeList::<span class="name">operator=</span>(const <span class="type"><a href="qdomnodelist.html#QDomNodeList">QDomNodeList</a></span> &amp;<i>n</i>)</h3>
<p>Assigns <i>n</i> to this node list.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQDomNodeList& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QDomNodeList::<span class="name">operator==</span>(const <span class="type"><a href="qdomnodelist.html#QDomNodeList">QDomNodeList</a></span> &amp;<i>n</i>) const</h3>
<p>Returns <code>true</code> if the node list <i>n</i> and this node list are equal; otherwise returns <code>false</code>.</p>
<!-- @@@operator== -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>