View Single Post
Posts: 87 | Thanked: 97 times | Joined on Sep 2010
#273
Originally Posted by sakya View Post
The documentation for the format is here:
http://doc.qt.nokia.com/latest/qdatetime.html#toString

I think he made three datetime widgets:
-one for the time with format "hh:mm"
-one for the "AM/PM" with format "A"
-one for the date

I made 3 widgets,

- One for time: "hh:mm A", aligned to center and then cut the size down to where AM/ PM was not visdible.

- Then another widget was created just to display AM/ PM.

- A separate date widget to display date as "dddd, dd-mm-yyyy"
 

The Following User Says Thank You to kishanW For This Useful Post: