QTextLayoutΒΆ

class PyQt5.QtGui.QTextLayout

The C++ documentation can be found here.