iblqt.widgets.SlideToggle
- class iblqt.widgets.SlideToggle[source]
Bases:
QAbstractButton
A sliding toggle switch.
Adapted from
Switch
class 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.