mirror of
https://github.com/pyapp-kit/superqt.git
synced 2026-01-10 14:07:15 +01:00
* good coverage * merged classes * working cross platform * range slider tests working too * many more fixes and unification * type * reorg * working labels, better typing * tests * legacy compat * update envlist * skip mouse press not on mac * fix getStyleOption * fix again * skip hover * remove print * add module docstring
13 lines
276 B
Python
13 lines
276 B
Python
from qtrangeslider import QDoubleSlider
|
|
from qtrangeslider.qtcompat.QtCore import Qt
|
|
from qtrangeslider.qtcompat.QtWidgets import QApplication
|
|
|
|
app = QApplication([])
|
|
|
|
slider = QDoubleSlider(Qt.Horizontal)
|
|
slider.setRange(0, 1)
|
|
slider.setValue(0.5)
|
|
slider.show()
|
|
|
|
app.exec_()
|