QWebElementCollection Class Reference |
class | const_iterator |
class | iterator |
QWebElementCollection () | |
QWebElementCollection ( const QWebElement & contextElement, const QString & query ) | |
QWebElementCollection ( const QWebElementCollection & other ) | |
~QWebElementCollection () | |
void | append ( const QWebElementCollection & other ) |
QWebElement | at ( int i ) const |
const_iterator | begin () const |
iterator | begin () |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
int | count () const |
const_iterator | end () const |
iterator | end () |
QWebElement | first () const |
QWebElement | last () const |
QList<QWebElement> | toList () const |
QWebElementCollection | operator+ ( const QWebElementCollection & other ) const |
QWebElementCollection & | operator+= ( const QWebElementCollection & other ) |
QWebElementCollection & | operator= ( const QWebElementCollection & other ) |
QWebElement | operator[] ( int position ) const |
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.
Destroys the collection.
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 an STL-style iterator pointing to the first element in the collection.
See also end().
Returns an STL-style iterator pointing to the first element in the collection.
See also end().
Returns an STL-style iterator pointing to the first element in the collection.
See also end().
Returns an STL-style iterator pointing to the imaginary element after the last element in the list.
See also begin().
Returns the number of elements in the collection.
Returns an STL-style iterator pointing to the imaginary element after the last element in the list.
See also begin().
Returns an STL-style iterator pointing to the imaginary element after the last element in the list.
See also begin().
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.
Returns a collection that contains all the elements of this collection followed by all the elements in the other collection. Duplicates may occur in the result.
See also operator+=().
Appends the items of the other list to this list and returns a reference to this list.
See also operator+() and append().
Assigns other to this collection and returns a reference to this collection.
Returns the element at the specified position in the collection.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6-snapshot | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com