I have qlabels that displaying images . I want to delete image if user clicks remove button . I can learn which image clicked
labels[i].mousePressEvent = functools.partial(self.remove_image, source_label = labels[i] ,source_image = pixmap)
but i couldn't use it and connects with button . How can i remove image ?