Add ports to the QGraphicsPixmapItem object
问题 I've created something like this. I have created a QGraphicsPixmapItem object that I can add to QGraphicsView. I want to add ports to these objects I created. And I want to make connections between these ports and the objects I have created. I don't know how to do it. can you help me ? my code class Part(QGraphicsPixmapItem): def __init__(self, name): super().__init__() self.name = name self.setFlags(self.ItemIsSelectable | self.ItemIsMovable | self.ItemIsFocusable) self.label = QLabel(