How to enable Pan and Zoom in a QGraphicsView
This is not too difficult to do using the built in capabilities of QGraphicsView. The demo script below has left-button panning and wheel zoom (including anchoring to the current cursor position). The fitInView method has been reimplemented because the built in version adds a weird fixed margin that can’t be removed. PyQt4 version: from PyQt4 … Read more