/usr/share/qt5/doc/qtwebkit/qwebelementcollection.html is in qtwebkit5-doc-html 5.212.0~alpha2-7ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebelement.cpp -->
<title>QWebElementCollection Class | Qt 5.212.0</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.212.0</td><td >QWebElementCollection</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.212.0 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-types">Public Types</a></li>
<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">QWebElementCollection Class</h1>
<!-- $$$QWebElementCollection-brief -->
<p>The <a href="qwebelementcollection.html">QWebElementCollection</a> class represents a collection of web elements. <a href="#details">More...</a></p>
<!-- @@@QWebElementCollection -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QWebElementCollection></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += webkitwidgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.6</td></tr></table></div><p><b>This class is under development and is subject to change.</b></p>
<ul>
<li><a href="qwebelementcollection-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection-const-iterator.html">const_iterator</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection-iterator.html">iterator</a></b></td></tr>
</table></div>
<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="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#QWebElementCollection-1">QWebElementCollection</a></b>(const QWebElement &<i>contextElement</i>, const QString &<i>query</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#QWebElementCollection-2">QWebElementCollection</a></b>(const QWebElementCollection &<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#dtor.QWebElementCollection">~QWebElementCollection</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#append">append</a></b>(const QWebElementCollection &<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElement </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#at">at</a></b>(int <i>i</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const_iterator </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#begin">begin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> iterator </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#begin-1">begin</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const_iterator </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#constBegin">constBegin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const_iterator </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#constEnd">constEnd</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#count">count</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const_iterator </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#end">end</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> iterator </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#end-1">end</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElement </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#first">first</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElement </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#last">last</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QWebElement> </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#toList">toList</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElementCollection </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#operator-2b">operator+</a></b>(const QWebElementCollection &<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElementCollection &</td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#operator-2b-eq">operator+=</a></b>(const QWebElementCollection &<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElementCollection &</td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#operator-eq">operator=</a></b>(const QWebElementCollection &<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElement </td><td class="memItemRight bottomAlign"><b><a href="qwebelementcollection.html#operator-5b-5d">operator[]</a></b>(int <i>position</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QWebElementCollection-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qwebelementcollection.html">QWebElementCollection</a> class represents a collection of web elements.</p>
<p>Elements in a document can be selected using <a href="qwebelement.html#findAll">QWebElement::findAll</a>() or using the <a href="qtwebkit-bridge.html#qwebelement">QWebElement</a> constructor. The collection is composed by choosing all elements in the document that match a specified CSS selector expression.</p>
<p>The number of selected elements is provided through the <a href="qwebelementcollection.html#count">count</a>() property. Individual elements can be retrieved by index using <a href="qwebelementcollection.html#at">at</a>().</p>
<p>It is also possible to iterate through all elements in the collection using Qt's foreach macro:</p>
<pre class="cpp">
<span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> collection <span class="operator">=</span> document<span class="operator">.</span>findAll(<span class="string">"p"</span>);
foreach (<span class="type"><a href="qwebelement.html">QWebElement</a></span> paraElement<span class="operator">,</span> collection) {
<span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
}
</pre>
</div>
<!-- @@@QWebElementCollection -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QWebElementCollection[overload1]$$$QWebElementCollection -->
<h3 class="fn" id="QWebElementCollection"><a name="QWebElementCollection"></a>QWebElementCollection::<span class="name">QWebElementCollection</span>()</h3>
<p>Constructs an empty collection.</p>
<!-- @@@QWebElementCollection -->
<!-- $$$QWebElementCollection$$$QWebElementCollectionconstQWebElement&constQString& -->
<h3 class="fn" id="QWebElementCollection-1"><a name="QWebElementCollection-1"></a>QWebElementCollection::<span class="name">QWebElementCollection</span>(const <span class="type"><a href="qwebelement.html">QWebElement</a></span> &<i>contextElement</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>query</i>)</h3>
<p>Constructs a collection of elements from the list of child elements of <i>contextElement</i> that match the specified CSS selector <i>query</i>.</p>
<!-- @@@QWebElementCollection -->
<!-- $$$QWebElementCollection$$$QWebElementCollectionconstQWebElementCollection& -->
<h3 class="fn" id="QWebElementCollection-2"><a name="QWebElementCollection-2"></a>QWebElementCollection::<span class="name">QWebElementCollection</span>(const <span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &<i>other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QWebElementCollection -->
<!-- $$$~QWebElementCollection[overload1]$$$~QWebElementCollection -->
<h3 class="fn" id="dtor.QWebElementCollection"><a name="dtor.QWebElementCollection"></a>QWebElementCollection::<span class="name">~QWebElementCollection</span>()</h3>
<p>Destroys the collection.</p>
<!-- @@@~QWebElementCollection -->
<!-- $$$append[overload1]$$$appendconstQWebElementCollection& -->
<h3 class="fn" id="append"><a name="append"></a><span class="type">void</span> QWebElementCollection::<span class="name">append</span>(const <span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &<i>other</i>)</h3>
<p>Extends the collection by appending all items of <i>other</i>.</p>
<p>The resulting collection may include duplicate elements.</p>
<p><b>See also </b><a href="qwebelementcollection.html#operator-2b-eq">operator+=</a>().</p>
<!-- @@@append -->
<!-- $$$at[overload1]$$$atint -->
<h3 class="fn" id="at"><a name="at"></a><span class="type"><a href="qwebelement.html">QWebElement</a></span> QWebElementCollection::<span class="name">at</span>(<span class="type">int</span> <i>i</i>) const</h3>
<p>Returns the element at index position <i>i</i> in the collection.</p>
<!-- @@@at -->
<!-- $$$begin[overload1]$$$begin -->
<h3 class="fn" id="begin"><a name="begin"></a><span class="type"><a href="qwebelementcollection-const-iterator.html">const_iterator</a></span> QWebElementCollection::<span class="name">begin</span>() const</h3>
<p>Returns an STL-style iterator pointing to the first element in the collection.</p>
<p><b>See also </b><a href="qwebelementcollection.html#end">end</a>().</p>
<!-- @@@begin -->
<!-- $$$begin$$$begin -->
<h3 class="fn" id="begin-1"><a name="begin-1"></a><span class="type"><a href="qwebelementcollection-iterator.html">iterator</a></span> QWebElementCollection::<span class="name">begin</span>()</h3>
<p>Returns an STL-style iterator pointing to the first element in the collection.</p>
<p><b>See also </b><a href="qwebelementcollection.html#end">end</a>().</p>
<!-- @@@begin -->
<!-- $$$constBegin[overload1]$$$constBegin -->
<h3 class="fn" id="constBegin"><a name="constBegin"></a><span class="type"><a href="qwebelementcollection-const-iterator.html">const_iterator</a></span> QWebElementCollection::<span class="name">constBegin</span>() const</h3>
<p>Returns an STL-style iterator pointing to the first element in the collection.</p>
<p><b>See also </b><a href="qwebelementcollection.html#end">end</a>().</p>
<!-- @@@constBegin -->
<!-- $$$constEnd[overload1]$$$constEnd -->
<h3 class="fn" id="constEnd"><a name="constEnd"></a><span class="type"><a href="qwebelementcollection-const-iterator.html">const_iterator</a></span> QWebElementCollection::<span class="name">constEnd</span>() const</h3>
<p>Returns an STL-style iterator pointing to the imaginary element after the last element in the list.</p>
<p><b>See also </b><a href="qwebelementcollection.html#begin">begin</a>().</p>
<!-- @@@constEnd -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn" id="count"><a name="count"></a><span class="type">int</span> QWebElementCollection::<span class="name">count</span>() const</h3>
<p>Returns the number of elements in the collection.</p>
<!-- @@@count -->
<!-- $$$end[overload1]$$$end -->
<h3 class="fn" id="end"><a name="end"></a><span class="type"><a href="qwebelementcollection-const-iterator.html">const_iterator</a></span> QWebElementCollection::<span class="name">end</span>() const</h3>
<p>Returns an STL-style iterator pointing to the imaginary element after the last element in the list.</p>
<p><b>See also </b><a href="qwebelementcollection.html#begin">begin</a>().</p>
<!-- @@@end -->
<!-- $$$end$$$end -->
<h3 class="fn" id="end-1"><a name="end-1"></a><span class="type"><a href="qwebelementcollection-iterator.html">iterator</a></span> QWebElementCollection::<span class="name">end</span>()</h3>
<p>Returns an STL-style iterator pointing to the imaginary element after the last element in the list.</p>
<p><b>See also </b><a href="qwebelementcollection.html#begin">begin</a>().</p>
<!-- @@@end -->
<!-- $$$first[overload1]$$$first -->
<h3 class="fn" id="first"><a name="first"></a><span class="type"><a href="qwebelement.html">QWebElement</a></span> QWebElementCollection::<span class="name">first</span>() const</h3>
<p>Returns the first element in the collection.</p>
<p><b>See also </b><a href="qwebelementcollection.html#last">last</a>(), <a href="qwebelementcollection.html#operator-5b-5d">operator[]</a>(), <a href="qwebelementcollection.html#at">at</a>(), and <a href="qwebelementcollection.html#count">count</a>().</p>
<!-- @@@first -->
<!-- $$$last[overload1]$$$last -->
<h3 class="fn" id="last"><a name="last"></a><span class="type"><a href="qwebelement.html">QWebElement</a></span> QWebElementCollection::<span class="name">last</span>() const</h3>
<p>Returns the last element in the collection.</p>
<p><b>See also </b><a href="qwebelementcollection.html#first">first</a>(), <a href="qwebelementcollection.html#operator-5b-5d">operator[]</a>(), <a href="qwebelementcollection.html#at">at</a>(), and <a href="qwebelementcollection.html#count">count</a>().</p>
<!-- @@@last -->
<!-- $$$toList[overload1]$$$toList -->
<h3 class="fn" id="toList"><a name="toList"></a><span class="type"><a href="../qtcore/qlist.html">QList</a></span><<span class="type"><a href="qwebelement.html">QWebElement</a></span>> QWebElementCollection::<span class="name">toList</span>() const</h3>
<p>Returns a <a href="../qtcore/qlist.html">QList</a> object with the elements contained in this collection.</p>
<!-- @@@toList -->
<!-- $$$operator+[overload1]$$$operator+constQWebElementCollection& -->
<h3 class="fn" id="operator-2b"><a name="operator-2b"></a><span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> QWebElementCollection::<span class="name">operator+</span>(const <span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &<i>other</i>) const</h3>
<p>Returns a collection that contains all the elements of this collection followed by all the elements in the <i>other</i> collection. Duplicates may occur in the result.</p>
<p><b>See also </b><a href="qwebelementcollection.html#operator-2b-eq">operator+=</a>().</p>
<!-- @@@operator+ -->
<!-- $$$operator+=[overload1]$$$operator+=constQWebElementCollection& -->
<h3 class="fn" id="operator-2b-eq"><a name="operator-2b-eq"></a><span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &QWebElementCollection::<span class="name">operator+=</span>(const <span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &<i>other</i>)</h3>
<p>Appends the items of the <i>other</i> list to this list and returns a reference to this list.</p>
<p><b>See also </b><a href="qwebelementcollection.html#operator-2b">operator+</a>() and <a href="qwebelementcollection.html#append">append</a>().</p>
<!-- @@@operator+= -->
<!-- $$$operator=[overload1]$$$operator=constQWebElementCollection& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &QWebElementCollection::<span class="name">operator=</span>(const <span class="type"><a href="qwebelementcollection.html#QWebElementCollection">QWebElementCollection</a></span> &<i>other</i>)</h3>
<p>Assigns <i>other</i> to this collection and returns a reference to this collection.</p>
<!-- @@@operator= -->
<!-- $$$operator[][overload1]$$$operator[]int -->
<h3 class="fn" id="operator-5b-5d"><a name="operator-5b-5d"></a><span class="type"><a href="qwebelement.html">QWebElement</a></span> QWebElementCollection::<span class="name">operator[]</span>(<span class="type">int</span> <i>position</i>) const</h3>
<p>Returns the element at the specified <i>position</i> in the collection.</p>
<!-- @@@operator[] -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</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>
|