mirror of
https://github.com/wassname/sloth.git
synced 2026-08-03 13:10:49 +08:00
Make QGraphicsView scrollable by mouse drag for now
This commit is contained in:
@@ -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 }");
|
||||
|
||||
Reference in New Issue
Block a user