views:

12

answers:

0

Hi,

you can enable mouse dragging by setting setDragMode(QtGui.QGraphicsView.ScrollHandDrag for QGraphicsView. Then you can drag the QGraphicsScene by holding the leftMouseButton. But I want to drag with the middleMouseButton not leftMouseButton. How can I do that? I tried setCursor(QtCore.Qt.ClosedHandCursor) but it isn't working. Has someone an idea?