hi,
u can use spin box for setting the range.
Qt Code:
  1. QSpinBox *sp = new QSpinBox;
  2. sp->setRange(115.0,200.0);
To copy to clipboard, switch view to plain text mode 
why u r using text edit?

for reading the value from spinBox
Qt Code:
  1. sp->value();
To copy to clipboard, switch view to plain text mode 
for setting the value in spinbox
sp->setValue();

Hope it helps
Bala