View Full Version : How to set QTimeEdit to display in 24 hour format
rforehand
2nd October 2009, 01:24
Is QTimeEdit stuck with a 12 hr format (AM/PM) or is there a display format string that will set it to 24 hr format (GMT).
Thanks,
Dick
wysota
2nd October 2009, 08:10
It displays in 24h format for me by default. I guess this is a matter of locale.
rforehand
3rd October 2009, 00:37
I declared an instance of QLocale with country = Poland and then extracted the time display format string. Turns out all I had to do was use "HH:mm:ss" as the QTimeEdit display format. The default in the US is "hh:mm:ss AP".
Thanks,
Dick
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.