Qt horizontalSlider send float values

Viewed 10170

I want to send a float value "step" with a qt horizontalSlider, I am trying this, and it is not working:

    horizontalSlider.setRange(0,25)
    horizontalSlider.setSingleStep(horizontalSlider.maximum()/100.0)
    horizontalSlider.valueChanged.connect(self.valueHandler)

Then I am getting the value here:

    def valueHandler(self,value):    
        print value

But, however, the output Im getting is 1,2,3,4,5,6,7,8.......

2 Answers
Related