The QTime Class offers me a bit of a pickle insofar as it does not allow me to set milliseconds above certain values, thus making an entry like this invalid.:
QTime time;
time.setHMS(0,0,0,42010958); // I normally use a variable
Considering that the range of milliseconds I'm dealing with is between about 1000
and 1000000000
, I'm not terribly keen on writing a tremendous amount of of integer conversion code to sanitise each entry, but I will do what I have to do.
What is the cleanest way to convert 42010958
Milliseconds into Hours:Minutes:Seconds
in Qt?