One can do it easily with good old [WIKI]proxy style[/WIKI]:
{
if (hint == SH_Slider_AbsoluteSetButtons)
return Qt::LeftButton; // or "Qt::LeftButton | Qt::RightButton"
return ProxyStyle::styleHint(hint, option, widget, returnData);
}
int MyStyle::styleHint(StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const
{
if (hint == SH_Slider_AbsoluteSetButtons)
return Qt::LeftButton; // or "Qt::LeftButton | Qt::RightButton"
return ProxyStyle::styleHint(hint, option, widget, returnData);
}
To copy to clipboard, switch view to plain text mode
Bookmarks