27 Apr 14:48
Zoomer always zooms to absolute maximum zoom
From: Matthias Pospiech <matthias.pospiech <at> gmx.de>
Subject: Zoomer always zooms to absolute maximum zoom
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-27 12:48:54 GMT
Subject: Zoomer always zooms to absolute maximum zoom
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-27 12:48:54 GMT
I am using the example code form the spectrogramm example.
I changed in such a way that it excepts data arrays, which works good
and has been discussed here as well.
Now I experience that any zoom done in the running programm zoom
automatically step by step to the maximum zoom, which is basically a
singel pixel of the data array. The zoom therefore is practically usedless.
Any ideas how to debug this are welcome.
Matthias
Here the code
class MyZoomer: public QwtPlotZoomer
{
public:
MyZoomer(QwtPlotCanvas* canvas): QwtPlotZoomer(canvas)
{
setTrackerMode(QwtPicker::AlwaysOn);
}
protected:
virtual QwtText trackerText( const QwtDoublePoint& p ) const
{
QwtText t( QwtPlotPicker::trackerText( p ));
QColor c(Qt::white);
c.setAlpha(180);
t.setBackgroundBrush( QBrush(c) );
(Continue reading)
RSS Feed