Skip to content

QLabeledDoubleSlider#

QDoubleSlider variant that shows an editable (SpinBox) label next to the slider.

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

from superqt import QLabeledDoubleSlider

app = QApplication([])

slider = QLabeledDoubleSlider(Qt.Orientation.Horizontal)
slider.setRange(0, 2.5)
slider.setValue(1.3)
slider.show()

app.exec_()

QLabeledDoubleSlider

Qt Class#

QAbstractSlider

Enums#

QLabeledDoubleSlider.EdgeLabelMode#

  • LabelIsRange

  • LabelIsValue

Methods#

decimals() -> int #

setDecimals(prec: int) -> None #