View Full Version : QDateTimeEdit 24Hours Format

22nd December 2010, 17:08
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

22nd December 2010, 18:21
You can use
setDisplayFormat ( const QString & format ) function to specify the date and time format. Check
QDateTime::toString() for the available formats.