I am talking about QGraphicsScene/View. I have no idea about qwt.
mAx
Have a look at the realtime example, that is included in the Qwt package. It shows how to add scrollbars to a plot. ( they appear, when you zoom in. ). Guess you can copy and use the ScrollZoomer class, like it is.
Instead of scrollbars you could also use wheels, what is demonstated in the eventfilter example. Another option for navigation is panning (QwtPlotPanner). The bode example shows how to combine zooming and panning.
HTH,
Uwe
has anyone done plotting with QPolygonF or QPainterPath? i am having trouble understanding the coordinate system. for instance, if i use the following function:
void QPainterPath::lineTo ( qreal x, qreal y )
lineTo(1,4); how does this actually work? because it seems to be upside or something?
did u use moveTo() before lineTo() ??
may be you are confusing the cordinate systems...
cartesian systems start from bottom left.... while painting in devices has a cordinate system starting from top left
i guess u r getting the result upside down on Y axis ??
Bookmarks