mirror of
https://github.com/pyapp-kit/superqt.git
synced 2026-01-08 05:10:36 +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
264 B
Python
13 lines
264 B
Python
from qtrangeslider import QDoubleSlider
|
|
from qtrangeslider.qtcompat.QtCore import Qt
|
|
from qtrangeslider.qtcompat.QtWidgets import QApplication
|
|
|
|
app = QApplication([])
|
|
|
|
sld = QDoubleSlider(Qt.Horizontal)
|
|
sld.setRange(0, 1)
|
|
sld.setValue(0.5)
|
|
sld.show()
|
|
|
|
app.exec_()
|