Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.2
-
None
-
Windows, Linux
-
I3823cc41167ec920f742cb6a20d39fc5f433c915
Description
QDateEdit will show three-digit value for date with the following scenario:
- QDateEdit has the display format set to ‘yyyy/MM/dd’
- the date value is edited to ‘31’
- focus is changed to month with Shift + Tab
- the month value is edited to ‘2’
-> the date value shows ‘291’ until cursor is moved or focus changed.
The QDateTimeParser seems to calculate the section size incorrectly (sectionSize() returns 1) therefore the date is replaced incorrectly. In QDateTimeParser::StateNode QDateTimeParser::parse(QString &input, int &cursorPosition, const QDateTime ¤tValue, bool fixup) method the 'input' has the three-digit day, but the 'newCurrentValue' has the correct date.
Attachments
Issue Links
- resulted in
-
QTBUG-27036 QDateEdit shows day as number when format includes ddd or dddd
- Closed