Enable dragging the QGraphicsView

topo-mov
LEdoian 1 year ago
parent 0226ba8eb2
commit 722961d128

@ -132,6 +132,7 @@ scene = QtWidgets.QGraphicsScene()
for sh in shapes.values(): scene.addItem(sh) for sh in shapes.values(): scene.addItem(sh)
view = QtWidgets.QGraphicsView(scene) view = QtWidgets.QGraphicsView(scene)
view.setDragMode(view.DragMode.ScrollHandDrag)
#view.show() #view.show()

Loading…
Cancel
Save