PDA

View Full Version : QT5.10.1 - QDoubleValidator Question



jimbo
4th May 2018, 12: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