
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQDomNodeList class is a list ofQDomNode objects.More...
| Header: | #include <QDomNodeList> |
Note: All functions in this class arereentrant.
| QDomNodeList() | |
| QDomNodeList(const QDomNodeList & n) | |
| ~QDomNodeList() | |
| QDomNode | at(int index) const |
| int | count() const |
| bool | isEmpty() const |
| QDomNode | item(int index) const |
| uint | length() const |
| int | size() const |
| bool | operator!=(const QDomNodeList & n) const |
| QDomNodeList & | operator=(const QDomNodeList & n) |
| bool | operator==(const QDomNodeList & n) const |
TheQDomNodeList class is a list ofQDomNode objects.
Lists can be obtained byQDomDocument::elementsByTagName() andQDomNode::childNodes(). The Document Object Model (DOM) requires these lists to be "live": whenever you change the underlying document, the contents of the list will get updated.
You can get a particular node from the list withitem(). The number of items in the list is returned bylength().
For further information about the Document Object Model seeLevel 1 andLevel 2 Core. For a more general introduction of the DOM implementation see theQDomDocument documentation.
See alsoQDomNode::childNodes() andQDomDocument::elementsByTagName().
Creates an empty node list.
Constructs a copy ofn.
Destroys the object and frees its resources.
This function is provided for Qt API consistency. It is equivalent toitem().
Ifindex is negative or ifindex >=length() then a null node is returned (i.e. a node for whichQDomNode::isNull() returns true).
This function is provided for Qt API consistency. It is equivalent tolength().
Returns true if the list contains no items; otherwise returns false. This function is provided for Qt API consistency.
Returns the node at positionindex.
Ifindex is negative or ifindex >=length() then a null node is returned (i.e. a node for whichQDomNode::isNull() returns true).
See alsolength().
Returns the number of nodes in the list.
This function is provided for Qt API consistency. It is equivalent tolength().
Returns true the node listn and this node list are not equal; otherwise returns false.
Assignsn to this node list.
Returns true if the node listn and this node list are equal; otherwise returns false.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.