I'm using a
. The application locale (set in QtCreator) is
Now when I enter a valid double (either using a dot or a comma as decimal separator) writing to the textedit as well as converting the string to a float works perfectly fine. But the validator also lets me write stuff with multiple decimal separators. Strings like
get validated but can't get converted into a float.
Is there a way to tell
to only validate real
numbers and not just strings without alphabetical characters?
I basically want to have a validator, that only validates strings, that can get converted to floats
using either the default locale or the german locale.