QTextFormat

class PyQt5.QtGui.QTextFormat

C++ documentation