diff --git a/examples/labeled.py b/examples/labeled_sliders.py similarity index 100% rename from examples/labeled.py rename to examples/labeled_sliders.py diff --git a/examples/basic.py b/examples/range_slider.py similarity index 82% rename from examples/basic.py rename to examples/range_slider.py index 4d245f9b..079103ae 100644 --- a/examples/basic.py +++ b/examples/range_slider.py @@ -5,7 +5,6 @@ app = QApplication([]) -slider = QRangeSlider(Qt.Orientation.Horizontal) slider = QRangeSlider(Qt.Orientation.Horizontal) slider.setValue((20, 80)) diff --git a/src/superqt/sliders/_labeled.py b/src/superqt/sliders/_labeled.py index c35c2406..38bb9d41 100644 --- a/src/superqt/sliders/_labeled.py +++ b/src/superqt/sliders/_labeled.py @@ -325,6 +325,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self._slider = self._slider_class() self._slider.valueChanged.connect(self.valueChanged.emit) self._slider.rangeChanged.connect(self.rangeChanged.emit) + self.sliderMoved = self._slider._slidersMoved self._min_label = SliderLabel( self._slider,