内容表

上一话题

QDomProcessingInstruction

下一话题

QXmlAttributes

QDomText

QDomText class represents text data in the parsed XML document. 更多

Inheritance diagram of PySide2.QtXml.QDomText

继承者: QDomCDATASection

概要

函数

详细描述

You can split the text in a QDomText object over two QDomText objecs with splitText() .

有关文档对象模型的进一步信息,见 级别 1 and 级别 2 核心 。有关 DOM 实现的更一般介绍,见 QDomDocument 文档编制。

class QDomText

QDomText(x)

param x

QDomText

构造空 QDomText 对象。

为构建 QDomText with content, use createTextNode() .

PySide2.QtXml.QDomText. splitText ( offset )
参数

offset int

返回类型

QDomText

Splits this DOM text object into two QDomText objects. This object keeps its first offset characters and the second (newly created) object is inserted into the document tree after this object with the remaining characters.

The function returns the newly created object.

另请参阅

normalize()