Hi,
I'm trying to display contour line of a qwt spectrogramm as dashed line.
Thus I sligthly modified the spectrogram exemple
void Plot::showContour( bool on )
{
d_spectrogram
->setDefaultContourPen
(QColor(Qt
::yellow),
3, Qt
::DashLine);
replot();
}
void Plot::showSpectrogram( bool on )
{
//d_spectrogram->setDefaultContourPen(
// on ? QPen( Qt::black, 0 ) : QPen( Qt::NoPen ) );
replot();
}
void Plot::showContour( bool on )
{
d_spectrogram->setDisplayMode( QwtPlotSpectrogram::ContourMode, on );
d_spectrogram->setDefaultContourPen(QColor(Qt::yellow),3, Qt::DashLine);
replot();
}
void Plot::showSpectrogram( bool on )
{
d_spectrogram->setDisplayMode( QwtPlotSpectrogram::ImageMode, on );
//d_spectrogram->setDefaultContourPen(
// on ? QPen( Qt::black, 0 ) : QPen( Qt::NoPen ) );
replot();
}
To copy to clipboard, switch view to plain text mode
and here's the result:
spectro.jpg
any idea on how I can handle this?
thanks for your attention
regards
Bookmarks