Hi there,
I want to retrieve the currently visible rectangle of a QGraphicsView (Qt 4), since by zooming in and scolling around that visible region is obviously changed and doesn't match the scene rect anymore (this is going to be used to simply visualize the currently visible region in some overview widget - like the similar function in Photoshop or other image editing programs).
Is there any API method like QGraphicsView::fitInView which seems to be the opposite of what I'm trying to do? For instance, I know that there was QWidget::visibleRect() in Qt 3 but not in Qt 4. Maybe there is some replacement?
Currently, I'm trying to manually calculate that visible rect by the scroll bar positions and the current scale factor - but not yet successfully.
Thanks.
Bookmarks