PDA

View Full Version : QDateTimeEdit 24Hours Format



metRo_
22nd December 2010, 18: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

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