QTextDocumentΒΆ

class PyQt5.QtGui.QTextDocument

The C++ documentation can be found here.