Skip to content

QDoubleSlider#

QSlider variant that accepts floating point values.

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

from superqt import QDoubleSlider

app = QApplication([])

slider = QDoubleSlider(Qt.Orientation.Horizontal)
slider.setRange(0, 1)
slider.setValue(0.5)
slider.show()

app.exec_()

QDoubleSlider

Qt Class#

QSlider

Methods#