I think you should subclass QProxyStyle to change return value of QStyle::SH_Slider_AbsoluteSetButtons hint in styleHint method. Something like that:
class SliderStyle: public QProxyStyle{
public:
if (hint
== QStyle::SH_Slider_AbsoluteSetButtons){ return Qt::LeftButton;
}else{
return QProxyStyle::styleHint(hint, option, widget, returnData);
}
}
};
class SliderStyle: public QProxyStyle{
public:
virtual int styleHint ( StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0 ) const{
if (hint == QStyle::SH_Slider_AbsoluteSetButtons){
return Qt::LeftButton;
}else{
return QProxyStyle::styleHint(hint, option, widget, returnData);
}
}
};
To copy to clipboard, switch view to plain text mode
Then create new SliderStyle and set is as your QSlider style.
Bookmarks