Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.3
-
95689c645fb42260d920091658b2d39c920abf00 (qt/qtbase/5.15)
Description
According to the documentation the input mask "X" means "Any character required" (https://doc.qt.io/qt-5/qlineedit.html#inputMask-prop).
Actual behavior:
QLineEdit hasAcceptableInput / TextField acceptableInput is true even when there's no input in the QLineEdit / TextField whatsoever.
Expected behavior:
QLineEdit hasAcceptableInput / TextField acceptableInput remains false if no input.
Steps to reproduce:
Run the attached project, leave the QLineEdit empty and hit "Check text validity".
Attachments
For Gerrit Dashboard: QTBUG-76320 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
282195,2 | Doc: Improve explanation of QLineEdit input mask | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |
283360,2 | Make inputmask 'X' mask character require non-blank input | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |
283363,3 | Make inputmask 'X' mask character require non-blank input | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
283703,1 | Make inputmask 'X' mask character require non-blank input | 5.14 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |