Hi.
I have two QGraphicsViews called small and big.
I've managed to scale down the small one, it looks awfull, but how can I make it so that a click or drag in the small view automatically scrolls the big map to the same position in the scene?
Hi.
I have two QGraphicsViews called small and big.
I've managed to scale down the small one, it looks awfull, but how can I make it so that a click or drag in the small view automatically scrolls the big map to the same position in the scene?
Reimplement the mousePress/mouseMove event of the small view and make it emit a signal that the view was clicked (and pass the scene coordinates as the argument). Then connect the signal to the other view's slot that will call QGraphicsView::centerOn.
Bookmarks