|
|
Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QDoubleValidator class provides range checking of floating-point numbers. More...
#include <qvalidator.h>
Inherits QValidator.
The QDoubleValidator class provides range checking of floating-point numbers.
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.
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.
See also QIntValidator, QRegExpValidator, and Miscellaneous Classes.
Returns the validator's minimum acceptable value. See the "bottom" property for details.
Returns the validator's maximum number of digits after the decimal point. See the "decimals" property for details.
Sets the validator's minimum acceptable value. See the "bottom" property for details.
Sets the validator's maximum number of digits after the decimal point. See the "decimals" property for details.
Sets the validator's maximum acceptable value. See the "top" property for details.
Returns the validator's maximum acceptable value. See the "top" property for details.
Returns Intermediate if input 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.
Returns Invalid if the input is not a double.
Note: If the valid range consists of just positive doubles (e.g. 0.0 - 100.0) and input is a negative double then Invalid is returned.
Reimplemented from QValidator.
This property holds the validator's minimum acceptable value.
Set this property's value with setBottom() and get this property's value with bottom().
See also setRange().
This property holds the validator's maximum number of digits after the decimal point.
Set this property's value with setDecimals() and get this property's value with decimals().
See also setRange().
This property holds the validator's maximum acceptable value.
Set this property's value with setTop() and get this property's value with top().
See also setRange().
This file is part of the Qt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | Qt 3.3.8
|