/usr/share/qt5/doc/qtwebkit/qwebelementcollection.html is in qtwebkit5-doc-html 5.1.1-1ubuntu8.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebelement.cpp -->
<title>QWebElementCollection Class | QtWebKit 5.1</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.1</li>
<li>QWebElementCollection</li>
<li id="buildversion">
Qt 5.1.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<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>
<h1 class="title">QWebElementCollection Class</h1>
<!-- $$$QWebElementCollection-brief -->
<p>The QWebElementCollection class represents a collection of web elements. <a href="#details">More...</a></p>
<!-- @@@QWebElementCollection -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QWebElementCollection></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.6</td></tr></table><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>Public Types</h2>
<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>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<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-2">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-3">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-2">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-2">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>
<a name="details"></a>
<!-- $$$QWebElementCollection-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebElementCollection 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="qwebelement.html">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">QWebElementCollection</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"><a name="QWebElementCollection"></a>QWebElementCollection::<span class="name">QWebElementCollection</span>()</h3>
<p>Constructs an empty collection.</p>
<!-- @@@QWebElementCollection -->
<!-- $$$QWebElementCollection$$$QWebElementCollectionconstQWebElement&constQString& -->
<h3 class="fn"><a name="QWebElementCollection-2"></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">QString</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"><a name="QWebElementCollection-3"></a>QWebElementCollection::<span class="name">QWebElementCollection</span>(const <span class="type">QWebElementCollection</span> &<i> other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QWebElementCollection -->
<!-- $$$~QWebElementCollection[overload1]$$$~QWebElementCollection -->
<h3 class="fn"><a name="dtor.QWebElementCollection"></a>QWebElementCollection::<span class="name">~QWebElementCollection</span>()</h3>
<p>Destroys the collection.</p>
<!-- @@@~QWebElementCollection -->
<!-- $$$append[overload1]$$$appendconstQWebElementCollection& -->
<h3 class="fn"><a name="append"></a><span class="type">void</span> QWebElementCollection::<span class="name">append</span>(const <span class="type">QWebElementCollection</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"><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"><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"><a name="begin-2"></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"><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"><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"><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"><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"><a name="end-2"></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"><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"><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"><a name="toList"></a><span class="type">QList</span><<span class="type"><a href="qwebelement.html">QWebElement</a></span>> QWebElementCollection::<span class="name">toList</span>() const</h3>
<p>Returns a QList object with the elements contained in this collection.</p>
<!-- @@@toList -->
<!-- $$$operator+[overload1]$$$operator+constQWebElementCollection& -->
<h3 class="fn"><a name="operator-2b"></a><span class="type">QWebElementCollection</span> QWebElementCollection::<span class="name">operator+</span>(const <span class="type">QWebElementCollection</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"><a name="operator-2b-eq"></a><span class="type">QWebElementCollection</span> & QWebElementCollection::<span class="name">operator+=</span>(const <span class="type">QWebElementCollection</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"><a name="operator-eq"></a><span class="type">QWebElementCollection</span> & QWebElementCollection::<span class="name">operator=</span>(const <span class="type">QWebElementCollection</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"><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> 2013 Digia Plc and/or its
subsidiaries. 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> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|