QRotaryEncoder#
- class QInstrument.widgets.QRotaryEncoder.QRotaryEncoder(*args, steps=None, **kwargs)[source]#
Bases:
QDialQDial subclass that emits directional step signals.
Wraps the full dial range and emits
stepUporstepDowneach time the user turns the dial by one step, correctly handling wrap-around.Properties#
- stepsint
Number of discrete steps in one full turn. Default: 100.
Signals#
- stepUp
Emitted each time the dial turns one step clockwise.
- stepDown
Emitted each time the dial turns one step counter-clockwise.