I have tried searching for this problem in various ways, but have found nothing relevant, so perhaps there is a simple way around this which I simply haven't found. If so, my apologies in advance.
I am using a number of QSpinBoxes in my app, and they have a behaviour which I find quite frustrating, namely that if you insert the cursor and try to type, it is blocked and nothing is inserted. If I then delete a character, then I can type one character, and so on.
Example:
Spinbox shows: 0.0000
I insert the cursor after the '.' and want to type '5', i.e. it would then have 0.50000. This is blocked, since the spinbox is full, given the constraints I have set on limits and precision. I have to press Delete to remove one '0', so it says 0.000 and then I can type my '5'.
How can I let the spinbox accept all valid input while typing, and only worry about truncating the value at the end?