I want to make a QDoubleSpinBox controllable via the arrow keys, i.e. increase the value when pressing up and decrease it when pressing down while the box is selected. I currently do this by setting singleStep to a certain value. However, I would like to be able to change the value of singleStep depending on the cursor position when editing the field.
For example for a box with two decimals, 1.23, if the cursor | is at the first decimal 1.2|3 I want to increase or decrease by 0.1 but if the cursor is at the second decimal 1.23| I only want to increase/decrease by 0.01.
Note: Not sure if relevant, but I currently have keyboardTracking set to False to avoid signal emission while editing the value by typing it in via the number keys. The values are still emitted when using the error keys.