Generic slider (#14)

* 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
This commit is contained in:
Talley Lambert
2021-06-02 17:23:05 -04:00
committed by GitHub
parent b12e5471a0
commit 15e3af4985
24 changed files with 1608 additions and 789 deletions

12
examples/basic_float.py Normal file
View File

@@ -0,0 +1,12 @@
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_()