Using decimal point separator on french OS
-
-
I have never tried it myself. However,
QValidatorhas a methodsetLocale(). This sets how the input should be interpreted. Most likely you are looking forQLocale::Cwhich 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::NumberOptionsaccordingly.Let me know if this approach works.