Qt Code:
  1. QSpinBox *spinBox ;
  2. spinBox = new QSpinBox;
To copy to clipboard, switch view to plain text mode 


There is no setValidator for QSpinBox like as for QLineEdit.
I want to restrict the user's input to clicking up and down arrows only,
and not allow user to type a value into the spin box's line editor.
How to do ?


S.O.S