Skip to content

QDoubleRangeSlider#

Float variant of QRangeSlider. (see that page for more details).

from qtpy.QtCore import Qt
from qtpy.QtWidgets import QApplication

from superqt import QDoubleRangeSlider

app = QApplication([])

slider = QDoubleRangeSlider(Qt.Orientation.Horizontal)
slider.setRange(0, 1)
slider.setValue((0.2, 0.8))
slider.show()

app.exec_()

QDoubleRangeSlider

Qt Class#

QSlider

Methods#