iblqt.widgets.SlideToggle
- class iblqt.widgets.SlideToggle[source]
Bases:
QAbstractButtonA sliding toggle switch.
Adapted from
Switchclass by Stefan Scherfke https://stackoverflow.com/a/51825815- paintEvent(event)[source]
Handle the painting of the custom toggle switch.
The appearance adapts to the widget’s enabled/disabled state and palette.
- Parameters:
event (
QPaintEvent) – The paint event that triggered this repaint.