Rotary encoder problem
-
Hence my question: how is that method called ? Do you have a signal connected to it ?
-
Yes, I have some knobs connected to the application, which increment or decrement with the rotation. It's a lung ventilator project, each knob has a function, such as: tidal volume, frequency, flow, peep, limit pressure... when I click on the screen, I can control these knobs through the left and right keys, however I would like to use an encoder for this and also keep the keys working!
-
That is clear and understood. What you are not answering is: how is onKeyPress called ?
What is the flow between your encoder back to your GUI ? -
Then how is KeyPress emitted ?
-
Doesn't rotary encoder outputs min of two "digits" ? Then you compare previous to current output to determine direction of rotation and from that derive "up or down " value to be added / deleted .
-
@mchinand Hi, how are you? Have a great day. No, It is found as rotary encoder even by the operating system, but the qt app was configured to detect only the keyboard keys, and I would like to make the keyboard and the encoder work simultaneously. But I'm not sure how to make the encoder work in the qt application.
-
What is the output from the rotary encoder that your application can respond to? Does it appear as a keyboard to the OS?
-
Can you explain how it is "working with the OS" ?
How would you retrieve the data ?