One more question: about the method you gave me before to customize the labels, how could I use it?

I am accessing the QwtSlider from the ui, with ui.timeSampleSlider, as you have already seen when I showed code here. I know I can get the ScaleDraw associated to my QwtSlider with the scaleDraw() method, but I don't know how to write the function you gave me then.

I can think of:
Qt Code:
  1. virtual QwtText ui.timeSampleSlider.scaleDraw()::label( double value ) const
  2. {
  3. return QwtScaleDraw::label( value / 1000.0 );
  4. }
To copy to clipboard, switch view to plain text mode 

which is obviously wrong, but I can't think of how to access to the ScaleDraw. By the way, I'm writting this method into my code, into the same cpp file I have been working before to set the ticks where I wanted.

How can I use this method then? Thanks once more!

Quote Originally Posted by Uwe View Post
Then set the ticks to 500, 1000 and modify how the tick labels are represented:

Qt Code:
  1. virtual QwtText YourScaleDraw::label( double value ) const
  2. {
  3. return QwtScaleDraw::label( value / 1000.0 );
  4. }
To copy to clipboard, switch view to plain text mode 

HTH,
Uwe