Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.12.0, 5.12.2, 5.13.0
Description
QIntValidator is returning the wrong state for invalid value.
QIntValidator v; v.setRange(1, 32); QString val = "33"; int pos = 0; const QValidator::State state = v.validate(val,pos); qDebug() << "Got" << state; // 5.12.0-> 1 and for 5.11.3-> 0
Above code is returning state QValidator:: Intermediate for 5.12.0 and QValidator:: Invalid for 5.11.3
As '33' is out of range for [1,32], it should result in QValidator:: Invalid
Attachments
Issue Links
- resulted from
-
QTBUG-59650 QIntValidator::validate doesn't return Intermediate for value with number of digits equal to or less than the max value
-
- Closed
-