I don't think there is something better. You may consider using
VeryCoarseTimer to minimize performance impact. You may also track and
check if label is visible and only then run timer.

niedz., 7 paź 2018, 07:02 użytkownik Ramakanth Kesireddy <
[email protected]> napisał:

> Hi,
>
> I would like to display date time(YYYYMMDDHHMMSS) in a QLabel.
> Instead of fetching current datetime using QDateTime::currentdatetime()
> and updating value in a timer, is there any other recommended means to
> display the same?
>
> Thanks and Regards,
> Ramakanth
> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to