The problem is the QDoubleValidator uses the current locale, which on my computer is currently configured as fr_BE where the decimal separator is , and thus (silently!) refuses values like 0.1, but then we use ast.literal_eval to convert the string to a float value, so entering 0,1 does not work either (still silently).
It does not support numbers with a decimal point.
The problem is the QDoubleValidator uses the current locale, which on my computer is currently configured as fr_BE where the decimal separator is
,
and thus (silently!) refuses values like0.1
, but then we use ast.literal_eval to convert the string to a float value, so entering0,1
does not work either (still silently).