Home · All Classes · Modules |
The QWebElementCollection class represents a collection of web elements. More...
The QWebElementCollection class represents a collection of web elements.
Elements in a document can be selected using QWebElement.findAll() or using the QWebElement constructor. The collection is composed by choosing all elements in the document that match a specified CSS selector expression.
The number of selected elements is provided through the count() property. Individual elements can be retrieved by index using at().
It is also possible to iterate through all elements in the collection using Qt's foreach macro:
QWebElementCollection collection = document.findAll("p"); foreach (QWebElement paraElement, collection) { ... }
Constructs an empty collection.
Constructs a collection of elements from the list of child elements of contextElement that match the specified CSS selector query.
Constructs a copy of other.
Extends the collection by appending all items of other.
The resulting collection may include duplicate elements.
See also operator+=().
Returns the element at index position i in the collection.
Returns the number of elements in the collection.
Returns the first element in the collection.
See also last(), operator[](), at(), and count().
Returns the last element in the collection.
See also first(), operator[](), at(), and count().
Returns a QList object with the elements contained in this collection.
PyQt 4.10.1 for MacOS | Copyright © Riverbank Computing Ltd and Nokia 2012 | Qt 4.8.4 |