Results 1 to 5 of 5

Thread: QDateEdit and 2 digit years

  1. #1
    Join Date
    Mar 2006
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QDateEdit and 2 digit years

    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".

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDateEdit and 2 digit years

    You mean it won't go down to 98, 97... ?

  3. #3
    Join Date
    Mar 2006
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QDateEdit and 2 digit years

    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.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

  5. #5
    Join Date
    Mar 2006
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QDateEdit and 2 digit years

    Sure, I did a search through the Task Tracker for QDateEdit and didn't find it...

Similar Threads

  1. Clearing QDateEdit
    By jpujolf in forum Qt Programming
    Replies: 3
    Last Post: 27th July 2006, 21:19
  2. Problem with receiving events from QDateEdit
    By gunhelstr in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 11:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.