Ejemplo n.º 1
0
    def mousePressEvent(self, mouseEvent):
        QGraphicsObject.mousePressEvent(self, mouseEvent)

        #if mouseEvent.button() == Qt.RightButton:
        #print self.mapFromPoint(mouseEvent.scenePos())
        self.onPress.emit()
 def mousePressEvent(self, event):
     if self.shapeItem.path().contains(event.pos()):
         return QGraphicsObject.mousePressEvent(self, event)
     else:
         event.ignore()
Ejemplo n.º 3
0
 def mousePressEvent(self, event):
     if self.shapeItem.path().contains(event.pos()):
         return QGraphicsObject.mousePressEvent(self, event)
     else:
         event.ignore()
Ejemplo n.º 4
0
    def mousePressEvent(self, mouseEvent):
        QGraphicsObject.mousePressEvent(self, mouseEvent)

        #if mouseEvent.button() == Qt.RightButton:
        #print self.mapFromPoint(mouseEvent.scenePos())
        self.onPress.emit()
Ejemplo n.º 5
0
 def mousePressEvent(self, event):
     QGraphicsObject.mousePressEvent(self, event)
     self.onPress.emit()
Ejemplo n.º 6
0
 def mousePressEvent(self, event):
     QGraphicsObject.mousePressEvent(self, event)
     self.onPress.emit()