PDA

View Full Version : Qgraphicscene - rendering



jsmith
22nd July 2009, 14:08
hi,
i have rendered the map using Qwidget & paint event.it has boundaries left=-1000,right=1000,top=1000,bottom=-1000;(assume one polygon)

i have implemented zoom using painter.scale and panning using painter.translate

now i would like to render it in QGraphicscene. is it possible to render it and implement zoom and panning with out drag. because on top of map i have to put some labels. these should me zoom/pan with respect to background map.

please send me sample code for this so that i'll be thankful to you.