PDA

View Full Version : Rubberband zoom



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

Uwe
12th September 2006, 07:10
See: http://www.qtcentre.org/forum/f-qt-programming-2/t-draw-rubberband-line-3596.html/?highlight=QwtPicker

If you have selected the rectangle it should be easy to adjust the viewport.

HTH,
Uwe

sreedhar
12th September 2006, 10:55
I want zooming to be done in QT3.3.6 not in QT4.1

munna
12th September 2006, 11:38
Qwt is available for Qt 3 also.