继承者: QDomCDATASection
You can split the text in a
QDomTextobject over twoQDomTextobjecs withsplitText().有关文档对象模型的进一步信息,见 级别 1 and 级别 2 核心 。有关 DOM 实现的更一般介绍,见
QDomDocument文档编制。
QDomText
¶
QDomText(x)
- param x
构造空
QDomText
对象。
为构建
QDomText
with content, use
createTextNode()
.
PySide2.QtXml.QDomText.
splitText
(
offset
)
¶
offset
–
int
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.
另请参阅