PDA

View Full Version : QDateEdit and 2 digit years



Byngl
4th September 2006, 21: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".

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

Byngl
4th September 2006, 22: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.

jacek
4th September 2006, 22:54
http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=111557

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