Qt class and example of rotary encoder using interrupt (Raspberry pi)