A standard line edit widget for float types
If given, decimals sets the number of decimals to round the value to.
None is an acceptable value for setValue and is converted to an empty string. None is returned by getValue if the value cannot be converted to a float.