Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt\QML Unit Converter (Metric\Imperial)
simone.malvezzi last edited by
I'm looking for a complete unit converter written for Qt\C++ (Metric\Imperial(US)\Imperial(UK)).
Doing so with some c++ classes could be a simple task, but I was wondering if there's something already implemented in Qt. I checked documentation and I don't find anything on API supporting these type conversion (Engineering software does use a lot those kind of functions and having this directly in Qt APIs could be really useful).
Any help would be appreciated. Thanks!
JonB last edited by JonB
No, Qt does not supply a set of measurement conversion tables, that's not its job. You could write it yourself, see if there is any pre-written C++ libraries/tables provided, or possibly grab them off the net, either dynamically or statically.
As an aside, you will have to decide how "complete" you want to be. Personally I am great fan of Imperial instead of this Metric rubbish, but even I don't measure in "rods", "poles" & "perches" (e.g. http://www.northcravenheritage.org.uk/NCHTJto2009/Journals/2006/RodsPolesPerches/RodsPolesPerches.html) ;-) Though --- and I'm sure you're fascinated --- in winter I measure temperature in Centigrade but in summer I measure in Farenheit....