SpinButton.setSnapToTicks

Sets the policy as to whether values are corrected to the nearest step increment when a spin button is activated after providing an invalid value.

class SpinButton
void
setSnapToTicks

Parameters

snapToTicks bool

a flag indicating if invalid values should be corrected