slider->setDoubleClickReturnValue(true, 0.5) and then double click on the slider ?
EDIT oops I wrote this too quickly