I have three QGraphicsView s each one with a different scene. I am trying to scroll all the views when the user is scrolling one of them. The scrolling is carried out by the user dragging in the QGraphicsView widget which calls QGraphicsView::scrollContentsBy. (no scrollbars)
My first implementation: From scrollContentsBy I am calling centerOn for all the other views but this ends up into a recursive call of scrollContentsBy.
My second implementation: From scrollContentsBy I am calling scroll for all the other views but the view is not updated correctly (missing part of the scene). It does scroll correctly though.
I tried different versions on this but I can't find the solution. Any idea would be great.
Edit: I found the answer but I need to wait 3 more hours before to reply to my own question :)