Just a quick question. I'm sure there's a solution out there, but I'm apparently not readily finding the appropriate function for QGraphicsView. See, my scene is much larger than the qgraphicsview (What I see of the scene in the window, as far as my understanding goes) and the user has the choice to scroll around the scene. Is it possible to find out exactly where the view is located in the scene as the user scrolls around and how? I basically need to know the scene coordinates of the view in the top left corner and bottom right corner.
Also, does anyone know how to disable the scroll bars but still have a QGraphicsScene larger than the QGraphicsView? Or... is it possible to load images that are positioned outside the scene? I basically want to preload images before they come into the view, but the user shouldn't be able to scroll into the "preloading images" area on the outside of the view.
EDIT:
I found that one could find the scene coordinates of a view using QGraphicsView's mapToScene(), but now I need to find where a QGraphicItem's position is in the view. How would one do that?
Do I need to get the item's scene, and then I can get the view using one of the scene's methods, and then use the above method? What steps does that take? It doesn't seem like I can get an item's scene or view but I may just be a n00b.
Bookmarks