View Full Version : QDateEdit and 2 digit years

4th September 2006, 22:58
Windows XP and Qt 4.1.4

If I have a QDateEdit with a displayFormat of "M/d/yy" and I try to use the spin box to increment the year, it always changes to 99 and then disables further modification with the spinner. I can modify the value manually to any number in the 0-99 range.

QDateTimeEdit appears to do the exact same thing with displayFormat = "M/d/yy h:mm:ss AP".

4th September 2006, 23:00
You mean it won't go down to 98, 97... ?

4th September 2006, 23:47
I mean that if it starts at 06, then clicking on the up (or down) arrow sets it to 99 and then you cannot modify it with the spin button until you change the value by editing the year field by typing in another number.

4th September 2006, 23:54

5th September 2006, 00:00
Sure, I did a search through the Task Tracker for QDateEdit and didn't find it... :o