QwtPlotZoomer disabled after deep zoom
Hello Everyone,
I'm using QwtPlotZoomer and QwtPlotMagnifer to zoom in and out,
If I use deep zoom using QwtPlotZoomer then it gets disabled and never used for zooming even after I zoom out using QwtPlotMagnifier.
Here is below I have written simple constructor for QwtPlotZoomer to initialize.
Code:
{
//setMaxStackDepth(-1);
setTrackerMode(AlwaysOff);
setMousePattern
(QwtEventPattern::MouseSelect1,Qt
::LeftButton, Qt
::ControlModifier);
setMousePattern
(QwtEventPattern::MouseSelect2, Qt
::NoButton, Qt
::NoModifier);
setMousePattern
(QwtEventPattern::MouseSelect4,Qt
::NoButton,Qt
::NoModifier);
setMousePattern
(QwtEventPattern::MouseSelect5,Qt
::NoButton,Qt
::NoModifier);
}
void ZoomPlot::rescale()
{
emit autoScaleDisable(false);
}
Can someone explains why it gets disable after deep/multiple zoom in and whats the solution for this?
Thanks
Re: QwtPlotZoomer disabled after deep zoom
Quote:
Originally Posted by
npatil15
Can someone explains why it gets disable after deep/multiple zoom in and whats the solution for this?
The overall limitation is the significance of doubles: https://de.wikipedia.org/wiki/IEEE_754. But you will probably never have the maximal significance for the tick labels and you will end up sooner or later in having identical values.
But if you like to disable the feature:
Code:
{
....
QSizeF minZoomSize
() const override
{
}
};
Note, that you Qwt is open source and you can always help yourself by looking into the code.
Uwe