Connect QSlider with QDoubleSpinBox

Hey Forum,

I am having a hard time figuring out how to connect the QSlider in QT with a QDoubleSpinBox. It is vital that the Slider can output values like 0.05 or 1.123 etc, currently its just (int) values, which is not working for our production.
Is it actually possible to get it to work, it has to right?

Currently we have a Lighting Tool in Maya with a MEL UI, which uses the dynamic sliders of mel. It would be great to somehow recreate them in QT.

Any help is appreciated.
Arvid

the slider is limited to ints, so you will need to scale the range of the slider by the amount of precision you need in the spinbox.

For example, if your spinbox goes from 0.0 to 1.0, then your slider needs to go from 0 to 10. As each widget is modified, it converts the value and sends it to the other widget.