PDA

View Full Version : suggestion for hand drag QProgressBar



wagmare
28th September 2012, 13:35
Hello friends,

I need experts suggestion of how i can create a QProgressBar where i can click , drag and move the filling using mouse ..

more to say i can change the progressbar value using the mouse as i click and drag ...
i need peoples suggestion for the best way i can implement ..

Thanks in advance ..

wysota
28th September 2012, 14:05
The easiest way is to just use QSlider, possibly with custom painting (or stylesheets). An alternative is to subclass QProgressBar and reimplement its mouse events to update the progress as the mouse position changes.

wagmare
28th September 2012, 14:16
Thanks !!

Right now im reimplementing the mouse events of QprogressBar .. yes im doing right !!