Hi,

I am trying to get the slider handle to move only when it is selected and drag. I have subclass the QSlider class , re-implementing the mousePressEvent function.

In my mousePressEvent function.

Qt Code:
  1. Q_D(QSlider);
  2. if (d->pressedControl != QStyle::SC_SliderHandle)
To copy to clipboard, switch view to plain text mode 

I am unable to access d_func() as it is private , is there any work around so i am able to check if the selected object is the slider handle?