sreedhar
12th September 2006, 06:31
Hi,
My app. is developed in Qt3.3.6. I am trying to implement RubberBand zoom for a view in my application. (I think QRubberBand of Qt4 does draw a rubber band)
i.e., My widget is in a scroll view. I can select a part of my widget using rectangular rubberband(shift+left click and move mouse draws the rectangle). Then on mouse release the widget should be zoomed to the rectangular part in rubberband and the viewport of my scroll area should be the region inside the rubberband.
Please post any code snippets if possible.
thanking you in advance
regards
My app. is developed in Qt3.3.6. I am trying to implement RubberBand zoom for a view in my application. (I think QRubberBand of Qt4 does draw a rubber band)
i.e., My widget is in a scroll view. I can select a part of my widget using rectangular rubberband(shift+left click and move mouse draws the rectangle). Then on mouse release the widget should be zoomed to the rectangular part in rubberband and the viewport of my scroll area should be the region inside the rubberband.
Please post any code snippets if possible.
thanking you in advance
regards