Draws a generic visual representation for this component

        Re-implement this to get a custom graphic in builder editor

        :param painter: Use this class to do the drawing
        :type painter: :qtdoc:`QPainter`
        :param rect: boundary of the delegate for this component, painting should be done inside this boundary
        :type rect: :qtdoc:`QRect`
        :param palette: contains color groups to use, if wanted
        :type palette: :qtdoc:`QPalette`

def paint(self, painter, rect, palette):
        """Draws a generic visual representation for this component

        Re-implement this to get a custom graphic in builder editor

        :param painter: Use this class to do the drawing
        :type painter: :qtdoc:`QPainter`
        :param rect: boundary of the delegate for this component, painting should be done inside this boundary
        :type rect: :qtdoc:`QRect`
        :param palette: contains color groups to use, if wanted
        :type palette: :qtdoc:`QPalette`
        """
        painter.save()

        image = img.default()
        painter.drawImage(rect, image)

        # set text color
        painter.setPen(QtGui.QPen(QtCore.Qt.red))
        painter.drawText(rect, QtCore.Qt.AlignLeft, self.__class__.__name__)

        painter.restore()