Oh, but your image for file sizes all show decimal points as '.' not a comma.
That is freaking out the QLocale().toFloat().
So I am missing the use of QLocale() to generate the file sizes and that is what is causing the trouble.
Let me see if QString::number() has a QLocale equivalent.
|