Make QGraphicsView scrollable by mouse drag for now

This commit is contained in:
Mika Fischer
2010-11-24 13:44:45 +01:00
parent b711aee48e
commit 593647885b
+1
View File
@@ -16,6 +16,7 @@ class GraphicsView(QGraphicsView):
def __init__(self, parent=None):
QGraphicsView.__init__(self, parent)
self.setDragMode(QGraphicsView.ScrollHandDrag)
self.setRenderHint(QPainter.Antialiasing)
self.setRenderHint(QPainter.TextAntialiasing)
self.setStyleSheet("QFrame { border: 3px solid black }");