Hi,
How do you implement panning of QGraphicsScene by middle mouse dragging? It's like moving the camera in OpenGL. I would prefer to use mouse based panning instead of scrollbars.
Cheers
Prashant
Hi,
How do you implement panning of QGraphicsScene by middle mouse dragging? It's like moving the camera in OpenGL. I would prefer to use mouse based panning instead of scrollbars.
Cheers
Prashant
Hi
You can use QGraphicsView::centerOn or QGraphicsView::fitInView in the view linked to your scene
Bookmarks