The QDoubleValidator class provides range checking of floating-point numbers. More...
#include <qvalidator.h>
Inherits QValidator.
Type | Name | READ | WRITE | Options |
---|---|---|---|---|
double | bottom | bottom | setBottom | |
double | top | top | setTop | |
int | decimals | decimals | setDecimals |
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.
See also QIntValidator.
Constructs a validator object which accepts all doubles.
Constructs a validator object which accepts all doubles from bottom up to and including top with at most decimals digits after the decimal point.
Destroys the validator, freeing any storage and other resources used.
Returns the lowest valid number according to this validator.
See also top(), decimals() and setRange().
Returns the largest number of digits a valid number can have after its decimal point.
See also bottom(), top() and setRange().
Sets the validator to accept no numbers smaller than bottom.
See also setRange().
Sets the maximum number of digits after the decimal point.
[virtual]
Sets the validator to accept numbers from bottom up to and including top with at most decimals digits after the decimal point.
Sets the validator to accept no numbers bigger than top.
See also setRange().
Returns the highest valid number according to this validator.
See also bottom(), decimals() and setRange().
Returns Acceptable if input contains a number in the legal range and format, Intermediate if it contains another number, a number with too many digits after the decimal point or is empty, and Invalid if input is not a number.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.
Copyright İ 2000 Trolltech | Trademarks | Qt version 2.2.1
|