PDA

View Full Version : functions in QTime



mythili
14th June 2013, 07:50
Hi,
Is there any functions to find the differnece and sum of two QTime objects.

Please help me

nix
14th June 2013, 08:06
qtime.html#msecsTo you get the difference from 2 times
qtime.html#addMSecs you can add an offset to a time and add two times with something like
time1.addMSecs(QTime().msecTo(time2))