Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.2.2
-
None
Description
When having an InputMask and a Validator set on a QLineEdit then the validator will not validate properly.
An example:
QLineEdit edit(&d);
QRegExp rx("-?
d
"); // <--- allow only digits
QValidator *validator = new QRegExpValidator(rx, &edit);
edit.setValidator(validator);
edit.setInputMask("#nnn"); // <--- allow chars
In the above example we will notice that the user will be allowed to enter characters on the lineedit but normally the validator should not allow that.