title: What is the cleanest way to translate 42010958 Milliseconds to Hours:Minutes:Seconds in Qt?
body: <p>The <a href="http://doc.qt.io/qt-5/qtime.html" rel="nofollow noreferrer">QTime</a> 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.:</p>
  
  <pre><code>    QTime time;
      time.setHMS(0,0,0,42010958); // I normally use a variable
  </code></pre>
  
  <p>Considering that the range of milliseconds I'm dealing with is between about <code>1000</code> and <code>1000000000</code>, 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.</p>
  
  <p>What is the cleanest way to convert <code>42010958</code> Milliseconds into <code>Hours:Minutes:Seconds</code> in Qt?</p>