QSpinbox don't allow You to write something wrong, i.e. letters instead of numbers etc.
You can use QDesigner (in QCreator) and set-up spinbox like: min: 0, max: 200, singleStep: 20, but that way, in Your example next value will be 21 not 20, so I think SixDegrees suggestion is more flexible that way.
Bookmarks