I am validating my TextBox to take only numbers between 1-75.
I am able to do this by using below code :
QValidator *validator = new QIntValidator(1, 75, this);
QLineEdit *edit = new QLineEdit(this);
edit->setValidator(validator);
But now the problem is it takes zero also. I want to avoid Zero
Any help is appreciated.
you can write your validator like that: