def METHOD_NAME(self, pixmap):
    # type: (QPixmap) -> None
    self.setAttribute(Qt.WA_TranslucentBackground,
                      pixmap.hasAlpha() and is_transparency_supported())
    self.__pixmap = QPixmap(pixmap)
    super().METHOD_NAME(pixmap)
    if pixmap.hasAlpha() and not is_transparency_supported():
        self.setMask(pixmap.createHeuristicMask())