momesana
27th October 2008, 18:53
Hi,
I want to get notified once the area displayed in a QGraphicsView changes. That is to say, once the area is zoomed in, zoomed out, scrolled, or whateva else that may make items that were not visible before visible in the view. The reason for this is that I want the items only to do some operations when they are visible in the view. And once they are not visible anymore (for example if we scroll to another region of the scene) they should free some resources etc. so that memory usage is minimized. What is the best way to do that?
Thanks in advance
I want to get notified once the area displayed in a QGraphicsView changes. That is to say, once the area is zoomed in, zoomed out, scrolled, or whateva else that may make items that were not visible before visible in the view. The reason for this is that I want the items only to do some operations when they are visible in the view. And once they are not visible anymore (for example if we scroll to another region of the scene) they should free some resources etc. so that memory usage is minimized. What is the best way to do that?
Thanks in advance