PDA

View Full Version : QwtsSlider Scale Origin



fruzzo
22nd November 2011, 13:39
Hi,
how can I get the exatly width (see the picture) between the QwtSlider widget bounding and the scale oprigin position (e.g. 0)?

7120

Uwe
23rd November 2011, 07:17
The QwtScaleDraw object of the slider knows the ticks and how to map a value to its widget position.

Uwe

fruzzo
23rd November 2011, 11:11
ok...but when I try to use the method const QwtScaleDraw * scaleDraw () const, comiling I have an error, the compiler recognize it as private!

Uwe
23rd November 2011, 11:23
Obviously you want to access the non const method, that is private. Call the const method instead.

Uwe