def METHOD_NAME(self, obj, ev):
    if ev.type() == QEvent.Paint:
        painter = QPainter(obj)
        painter.fillRect(obj.rect(), QColor(255, 255, 255, 180))
    return super().METHOD_NAME(obj, ev)