From 31606d0f96f1f71e5b4ee1173f678eeeeb5bfafb Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Tue, 21 Jun 2011 11:52:37 +0200 Subject: [PATCH] Enable rubberband selection (closes #28) --- sloth/gui/frameviewer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sloth/gui/frameviewer.py b/sloth/gui/frameviewer.py index b3904ca..8ea5b0c 100644 --- a/sloth/gui/frameviewer.py +++ b/sloth/gui/frameviewer.py @@ -16,6 +16,7 @@ class GraphicsView(QGraphicsView): def __init__(self, parent=None): QGraphicsView.__init__(self, parent) + self.setDragMode(QGraphicsView.RubberBandDrag) #self.setDragMode(QGraphicsView.ScrollHandDrag) self.setRenderHints(QPainter.Antialiasing | QPainter.SmoothPixmapTransform | QPainter.TextAntialiasing); self.setStyleSheet("QFrame { border: 3px solid black }");