Enable rubberband selection (closes #28)

This commit is contained in:
Mika Fischer
2011-06-21 11:52:37 +02:00
parent 6ab7a92d4d
commit 31606d0f96
+1
View File
@@ -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 }");