Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.6.0
-
None
Description
Setting a required character does not work properly. A space is added instead of doing nothing if the value entered is not valid for the required field but is valid for the following one.
To reproduce:
#include <QApplication> #include <QLineEdit> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLineEdit *le = new QLineEdit; le->setInputMask("D000"); // le->setInputMask("AA0AA0"); le->show(); return app.exec(); }
CASE le->setInputMask("D000");
entering 00 return " 00"
CASE le->setInputMask("AA0AA0");
entering 00 return " 0 0"