QTime not displaying properly in Qt 5.9
I'm using a QTime in Qt 5.9 to hold an elapsed time. Got that part. When I go to display it as a string with time.toString("hh:mm:ss.zzz") it drops the hours. According to the documentation (they explicitly give that format as an example) that's the proper format. Am I doing something wrong or is it a bug in 5.9? I tried a few different foramts (":hh:mm:ss.zzz", ".hh:mm:ss.zzz", and "hh:mm:ss:zzz") and those formats display as written, but that's not what they want, they want hh:mm:ss.zzz.
Re: QTime not displaying properly in Qt 5.9
What happens if you use the alternate form of QTime::toString() with the Qt::ISODateWithMs argument?
Even if this doesn't work, you can always write your own formatting using QString::arg() features. All of the fields you need are accessible as QTime methods.
Re: QTime not displaying properly in Qt 5.9
I'll try that and see if it works, if not I can always QString::arg(). Thanks for the idea, it didn't even occur to me.