QDomNodeList 类是列表在 QDomNode 对象。 更多...
QDomNodeList 类是列表在 QDomNode 对象。
Lists can be obtained by QDomDocument.elementsByTagName () and QDomNode.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 with item (). The number of items in the list is returned by length ().
有关文档对象模型的进一步信息,见 级别 1 and 级别 2 核心 . For a more general introduction of the DOM implementation see the QDomDocument 文档编制。
Creates an empty node list.
构造副本为 n .
This function is provided for Qt API consistency. It is equivalent to item ().
若 index 为负或者若 index >= length () then a null node is returned (i.e. a node for which QDomNode.isNull () returns true).
This function is provided for Qt API consistency. It is equivalent to length ().
Returns true if the list contains no items; otherwise returns false. This function is provided for Qt API consistency.
返回节点在位置 index .
若 index 为负或者若 index >= length () then a null node is returned (i.e. a node for which QDomNode.isNull () returns true).
另请参阅 length ().
返回列表节点数。
This function is provided for Qt API consistency. It is equivalent to length ().