I'm using qt on linux.
I want to display system time on label. How can it be done.
I'm using qt on linux.
I want to display system time on label. How can it be done.
have a look at QTime
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hi,
I have a similar question, and looked at QTime, how can I get the time zone.
Thanks,
Ted.
As far as I know there is no Qt-specific way to get the time zone. There is, however, a lot of support for dealing with dates/times, independent of time zones.
So, do you ask because you need a specific task involving dates or times done, or do you really just need to know what the current time zone is? In the first case, Qt might offer what you need. In the second case, I'm afraid that at least I don't know of a platform-independet way of determining that.
May be QLocale might be of some use to you
Bookmarks