diff --git a/sloth/gui/annotationscene.py b/sloth/gui/annotationscene.py index 075bf95..c076cf1 100644 --- a/sloth/gui/annotationscene.py +++ b/sloth/gui/annotationscene.py @@ -165,7 +165,7 @@ class AnnotationScene(QGraphicsScene): def mouseMoveEvent(self, event): sp = event.scenePos() self.mousePositionChanged.emit(sp.x(), sp.y()) - LOG.debug("mouseMoveEvent %s %s" % (self.sceneRect().contains(event.scenePos()), event.scenePos())) + #LOG.debug("mouseMoveEvent %s %s" % (self.sceneRect().contains(event.scenePos()), event.scenePos())) if self.inserter_ is not None: # insert mode self.inserter_.mouseMoveEvent(event, self.image_item_) diff --git a/sloth/gui/frameviewer.py b/sloth/gui/frameviewer.py index 1e03dac..87984c9 100644 --- a/sloth/gui/frameviewer.py +++ b/sloth/gui/frameviewer.py @@ -18,6 +18,7 @@ class GraphicsView(QGraphicsView): QGraphicsView.__init__(self, parent) self.setDragMode(QGraphicsView.RubberBandDrag) #self.setDragMode(QGraphicsView.ScrollHandDrag) + self.setMouseTracking(True) self.setRenderHints(QPainter.Antialiasing | QPainter.SmoothPixmapTransform | QPainter.TextAntialiasing); self.setStyleSheet("QFrame { border: 3px solid black }"); self.active_ = False