I have a dialog with several QSpinBox elements in it.

You enter a value, then select it later and press backspace[or 'delete'], it wont be set to '0'. The old value will remain there.

Is it the default behavior of QSpinBox? How can I make it revert to zero on 'backspace/delete' key press? Someone please guide me.

Thanks in advance