Using decimal point separator on french OS
Unsolved
QML and Qt Quick
-
-
I have never tried it myself. However,
QValidator
has a methodsetLocale()
. This sets how the input should be interpreted. Most likely you are looking forQLocale::C
which only support the point and not the comma (at least as decimal separator). Though by default locales allow for group separators. So, you might want to get a copy of the C locale object and adjust theQLocale::NumberOptions
accordingly.Let me know if this approach works.