The QIntValidator class provides range checking of integers. More...
#include <qvalidator.h>
Inherits QValidator.
Type | Name | READ | WRITE | Options |
---|---|---|---|---|
int | bottom | bottom | setBottom | |
int | top | top | setTop |
QIntValidator provides a lower and an upper bound. It does not provide a fixup() function.
See also QDoubleValidator.
Constructs a validator object which accepts all integers.
Constructs a validator object which accepts all integers from bottom up to and including top.
Destroys the validator, freeing any storage and other resources used.
Returns the lowest valid number according to this validator.
See also top() and setRange().
Sets the validator to accept no numbers smaller than bottom.
See also setRange().
[virtual]
Sets the validator to accept only number from bottom up to an including top.
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() and setRange().
Returns Acceptable if input contains a number in the legal range, Intermediate if it contains another integer or is empty, and Invalid if input is not an integer.
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
|