[Qt-interest] Storing Qt properties to file
Konstantin Tokarev
annulen at yandex.ru
Mon Sep 26 12:55:25 CEST 2011
26.09.2011, 14:53, "Schimkowitsch Robert" <Robert.Schimkowitsch at andritz.com>:
> My only locale-dependent types I am aware of right now is float and
> double.
> The way I read the QString documentation, I should be fine using
> QString::number
> and
> QString::toString
>
> because QString::number:
> "Unlike QLocale::toString(), this function does not honor the user's
> locale settings."
> ...which hopefully means the numbers always are formatted with ".",
> never ","
>
> and QString::toString:
> "If the string cannot be interpreted according to the current locale,
> this function falls back on the "C" locale."
> ...which is what should happen to the string I got using "toString".
In any case, PLEASE, store numbers with "." if you don't want Russian
users to hate you.
--
Regards,
Konstantin
More information about the Qt-interest-old
mailing list