.BI "double \fBbottom\fR - the validator's minimum acceptable value"
.br
.ti -1c
.BI "int \fBdecimals\fR - the validator's maximum number of digits after the decimal point"
.br
.ti -1c
.BI "double \fBtop\fR - the validator's maximum acceptable value"
.br
.in -1c
.SH DESCRIPTION
The QDoubleValidator class provides range checking of floating-point numbers.
.PP
QDoubleValidator provides an upper bound, a lower bound and a limit on the number of digits after the decimal point. It does not provide a fixup() function.
.PP
You can set the acceptable range in one call with setRange(), or with setBottom() and setTop(). Set the number of decimal places with setDecimals(). The validate() function returns the validation state.
Constructs a validator object with parent \fIparent\fR, called \fIname\fR. This validator will accept doubles from \fIbottom\fR to \fItop\fR inclusive, with up to \fIdecimals\fR digits after the decimal point.
.SH "QDoubleValidator::~QDoubleValidator ()"
Destroys the validator, freeing any resources used.
.SH "double QDoubleValidator::bottom () const"
Returns the validator's minimum acceptable value. See the "bottom" property for details.
.SH "int QDoubleValidator::decimals () const"
Returns the validator's maximum number of digits after the decimal point. See the "decimals" property for details.
.SH "void QDoubleValidator::setBottom ( double )"
Sets the validator's minimum acceptable value. See the "bottom" property for details.
.SH "void QDoubleValidator::setDecimals ( int )"
Sets the validator's maximum number of digits after the decimal point. See the "decimals" property for details.
Returns Acceptable if the string \fIinput\fR contains a double that is within the valid range and is in the correct format.
.PP
Returns Intermediate if \fIinput\fR contains a double that is outside the range or is in the wrong format, e.g. with too many digits after the decimal point or is empty.
.PP
Returns Invalid if the \fIinput\fR is not a double.
.PP
Note: If the valid range consists of just positive doubles (e.g. 0.0 - 100.0) and \fIinput\fR is a negative double then Invalid is returned.
.PP
Reimplemented from QValidator.
.SS "Property Documentation"
.SH "double bottom"
This property holds the validator's minimum acceptable value.
.PP
Set this property's value with setBottom() and get this property's value with bottom().
.PP
See also setRange().
.SH "int decimals"
This property holds the validator's maximum number of digits after the decimal point.
.PP
Set this property's value with setDecimals() and get this property's value with decimals().
.PP
See also setRange().
.SH "double top"
This property holds the validator's maximum acceptable value.
.PP
Set this property's value with setTop() and get this property's value with top().