I have a GraphicsView/Scene with arrows and boxes, zooming, panning and moving the boxes all work but via the mouse buttons (wheel button zooms).

I would like to add buttons similar to what you see on map programs where the zoom in and zoom out are placed directly on the map.

My initial thought was to draw them using the drawForeground method in QGraphicsView but I found that my scaling and panning also moves them and determining mouse presses on that is less than ideal.

What would be the best way to do this? Is there a way to anchor them in the corner so there size and placement never change (any ideas on best way to capture a mouse press on them)? Can I anchor a QGraphicsItem in such a way, or maybe I should draw on the viewport (again the mouse press capture would not be ideal).

Thanks