You should use the DragMode option into QGraphicsView:
graphicsView.setDragMode(QGraphicsView.DragMode.ScrollHandDrag)