Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QDomNodeList Class

TheQDomNodeList class is a list ofQDomNode objects.More...

Header:#include <QDomNodeList>

Note: All functions in this class arereentrant.

Public Functions

QDomNodeList()
QDomNodeList(const QDomNodeList & n)
~QDomNodeList()
QDomNodeat(int index) const
intcount() const
boolisEmpty() const
QDomNodeitem(int index) const
uintlength() const
intsize() const
booloperator!=(const QDomNodeList & n) const
QDomNodeList &operator=(const QDomNodeList & n)
booloperator==(const QDomNodeList & n) const

Detailed Description

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().

Member Function Documentation

QDomNodeList::QDomNodeList()

Creates an empty node list.

QDomNodeList::QDomNodeList(constQDomNodeList & n)

Constructs a copy ofn.

QDomNodeList::~QDomNodeList()

Destroys the object and frees its resources.

QDomNode QDomNodeList::at(int index) const

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).

int QDomNodeList::count() const

This function is provided for Qt API consistency. It is equivalent tolength().

bool QDomNodeList::isEmpty() const

Returns true if the list contains no items; otherwise returns false. This function is provided for Qt API consistency.

QDomNode QDomNodeList::item(int index) const

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().

uint QDomNodeList::length() const

Returns the number of nodes in the list.

int QDomNodeList::size() const

This function is provided for Qt API consistency. It is equivalent tolength().

bool QDomNodeList::operator!=(constQDomNodeList & n) const

Returns true the node listn and this node list are not equal; otherwise returns false.

QDomNodeList & QDomNodeList::operator=(constQDomNodeList & n)

Assignsn to this node list.

bool QDomNodeList::operator==(constQDomNodeList & n) const

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.


[8]ページ先頭

©2009-2025 Movatter.jp