PDA

View Full Version : Customizing Qwtslider



Navi
23rd June 2015, 12:33
i can able to generate a slider using qwt.
But i need to change the width and height of handle and slider in qwt.
Is it possible ?? i have attached an snapshot of this...i need same as in snapshot.

11240

Uwe
24th June 2015, 05:56
QwtSclider::drawSlider draws all parts without the scale and the handle, QwtSlider::drawHandle draws the handle. Both of the are virtual and can be overloaded.
( note that the geometry of the slider is affected by the contents margins ).

Uwe

Navi
24th June 2015, 08:08
when i give this code

QPixmap b ("C:/Users/Desktop/image.png");
QRect rect(12,15,16,17);

QPainter painter(&b);
mySlider->drawSlider(b,rect);

i got an error.

cannot convert parameter 1 from 'QPixmap' to 'QPainter *

whats wrong