QTextObject

class PyQt5.QtGui.QTextObject

C++ documentation