def METHOD_NAME(self, option: QStyleOptionButton):
    option.initFrom(self)
    option.features |= QStyleOptionButton.Flat
    option.iconSize = self.iconSize()
    option.icon = self.icon()
    option.text = ""
    if self.isDown():
        option.state |= QStyle.State_Sunken