I added the following code to the example:
setCanvasBackground( Qt::darkBlue );
setCanvasBackground( Qt::darkBlue );
To copy to clipboard, switch view to plain text mode
and
virtual double SpectrogramData::value( double x, double y ) const
{
if ( x > -1 && x < -0.6 && y > -1 && y < -0.6 )
return qQNaN();
....
}
virtual double SpectrogramData::value( double x, double y ) const
{
if ( x > -1 && x < -0.6 && y > -1 && y < -0.6 )
return qQNaN();
....
}
To copy to clipboard, switch view to plain text mode
With Qwt from SVN trunk you also need to remove the line:
setAttribute( QwtRasterData::WithoutGaps, true );
To copy to clipboard, switch view to plain text mode
The result is a blue gap in the specified area.
Uwe
spectrogram.png
Bookmarks