jimbo
4th May 2018, 11:10
Hello,
I'm able to enter a number larger or less than '+' or '-' 360, the 3 decimal places and no alpha chars works.
What am I doing wrong?
Regards
QDoubleValidator *doubleVal = new QDoubleValidator ( -359.999, 359.999, 3, this );
doubleVal->setNotation( QDoubleValidator::StandardNotation );
Le1->setValidator( doubleVal ); //Le1 is QLineEdit
I'm able to enter a number larger or less than '+' or '-' 360, the 3 decimal places and no alpha chars works.
What am I doing wrong?
Regards
QDoubleValidator *doubleVal = new QDoubleValidator ( -359.999, 359.999, 3, this );
doubleVal->setNotation( QDoubleValidator::StandardNotation );
Le1->setValidator( doubleVal ); //Le1 is QLineEdit