I have a QLineEdit and a QSlider in which it interacts with each other. Eg. If I set a value in the QLineEdit, the slider will be updated, or if I slide the slider across, it will updates the value in QLineEdit # If user change value on the slider self.timer_slider.valueChanged.connect(self.set_value) # If user sets a value in the text box instead self.timer_value.textChanged.connect(self.set_slider) def set_slider(self, value): self.timer_slider.setValue(int(value)) def set_value(self, value): self.timer_value.setText(str(value)) Is there anyway that I can use float instead of int values? Continue reading...