Im trying to set a valid range for a line edit. The maximum value is being enforced, but the minimum value is not. i.e. it is allowing values less then 10 to be entered and stored.

How can I get the minimum value to be enfored?

Qt Code:
  1. QValidator *trackLineEditValidator = new QIntValidator(10, 255, this);
  2. ui.trackLineEdit->setValidator(trackLineEditValidator);
To copy to clipboard, switch view to plain text mode 

Thank you,
Chas