Results 1 to 2 of 2

Thread: QDateTimeEdit 24Hours Format

  1. #1
    Join Date
    Mar 2010
    Posts
    56
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default QDateTimeEdit 24Hours Format

    Hi, how can i set the QDateTimeEdit with a 24 hours format? I read something about the setlocale but i can't figure it out how to change. :s

  2. #2
    Join Date
    Mar 2010
    Posts
    11
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QDateTimeEdit 24Hours Format

    You can use
    Qt Code:
    1. setDisplayFormat ( const QString & format )
    To copy to clipboard, switch view to plain text mode 
    function to specify the date and time format. Check
    Qt Code:
    1. QDateTime::toString()
    To copy to clipboard, switch view to plain text mode 
    for the available formats.

Similar Threads

  1. QDateTimeEdit
    By doberkofler in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2009, 15:10
  2. QDateTimeEdit
    By doberkofler in forum Newbie
    Replies: 0
    Last Post: 28th October 2009, 06:28
  3. QDateTimeEdit
    By coderbob in forum Qt Programming
    Replies: 3
    Last Post: 5th January 2008, 19:54
  4. new design of QDateTimeEdit
    By Ursa in forum Qt Programming
    Replies: 2
    Last Post: 12th December 2007, 07:30
  5. QDateTimeEdit
    By dkite in forum Qt Programming
    Replies: 2
    Last Post: 10th September 2006, 19:12

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.