mirror of
https://github.com/wassname/sloth.git
synced 2026-07-04 09:37:13 +08:00
Enable rubberband selection (closes #28)
This commit is contained in:
@@ -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 }");
|
||||
|
||||
Reference in New Issue
Block a user