Re: Zoomer always zooms to absolute maximum zoom
Brought to you by:
rathmann
From: Uwe R. <Uwe...@ti...> - 2008-05-15 04:08:04
|
On Wednesday 14 May 2008 17:39, Matthias Reich wrote: > I have figured out, that the new ZoomBase seems to be indeed unified > intentionally with the current ScaleRect. The question remains then, > however, why this mechanism is not effective when there hasn't been any > zoom action, but becomes relevant after that initial zoom happens... The zoomer maintains a stack of rectangles. With setZoomBase you clear this stack and assign a rectangle as first element. With zoom(QwtDoubleRect) you can push a rectangle and with zoom(int) you navigate on the stack. With both calls the scales of the plot are adjusted to the corrsponding rect. If something weird is happening I recommend to debug the rectangles, that are pushed/popped to the stack. Uwe |