I just can not figure out why your QLocale().toString() function and QLocale(QString).toFloat() can not be properly working. It seems to work everyplace.
And how can the text "66.82" can not be converted properly to a float is very strange.
I know some locales use "," as a group separator and some use commas as a decimal point (like France). Other places use blanks or non-breaking spaces as group separators.
Since that value is generated by QLocale().toString() that same QLocale().toFloat() should handle it.
So for Poland:
what is your locale decimal point, and thousands group separator characters?
|