Beispiel #1
0
 def mousePressEvent(self, event):
     # Padre
     #print event
     ZoomGraphicsView.mousePressEvent(self, event)
     item = self.itemAt(event.pos())
     if item and event.buttons() & Qt.LeftButton:
         item.color = QColor(255,23,23)
         item.update()
Beispiel #2
0
 def mousePressEvent(self, event):
     # Padre
     #print event
     ZoomGraphicsView.mousePressEvent(self, event)
     item = self.itemAt(event.pos())
     if item and event.buttons() & Qt.LeftButton:
         item.color = QColor(255, 23, 23)
         item.update()