Lazy solution: Use a SpinBox and disable the slider (You also have to disable it in the “Style” tab if you want it to disappear completely):