This is your code:
{
public:
virtual QwtText label
( double v
) const {
}
};
plot->setAxisScaleDraw( ..., new YourScaleDraw() );
class YourScaleDraw: public QwtScaleDraw
{
public:
virtual QwtText label( double v ) const
{
return QwtScaleDraw::label( pcmToMS( v ) );
}
};
plot->setAxisScaleDraw( ..., new YourScaleDraw() );
To copy to clipboard, switch view to plain text mode
If you want to have ticks aligned to ms values read my first answer or set your ticks manually ( what is no option if you want to offer a navigation like zooming/panning to your users ) with QwtPlot::setAxisScaleDiv().
HTH,
Uwe
Bookmarks