def METHOD_NAME(self, event: QPaintEvent) -> None:
    """Custom implementation of the label painter that rotates the
    label 90 degrees.
    """
    pObj = QStylePainter(self)
    oObj = QStyleOptionTab()
    for i in range(self.count()):
        self.initStyleOption(oObj, i)
        pObj.drawControl(QStyle.CE_TabBarTabShape, oObj)
        pObj.save()
        oSize = oObj.rect.size()
        oSize.transpose()
        oRect = QRect(QPoint(), oSize)
        oRect.moveCenter(oObj.rect.center())
        oObj.rect = oRect
        oCenter = self.tabRect(i).center()
        pObj.translate(oCenter)
        pObj.rotate(90)
        pObj.translate(-oCenter)
        pObj.drawControl(QStyle.CE_TabBarTabLabel, oObj)
        pObj.restore()
    return