Uwe Rathmann | 15 May 06:07

Re: Zoomer always zooms to absolute maximum zoom

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane