Qt logo

QIntValidator Class Reference


The QIntValidator class provides range checking of integers. More...

#include <qvalidator.h>

Inherits QValidator.

List of all member functions.

Public Members


Detailed Description

The QIntValidator class provides range checking of integers.

QIntValidator provides a lower and an upper bound. It does not provide a fixup() function.

See also: QDoubleValidator.


Member Function Documentation

QIntValidator::QIntValidator ( QWidget * parent, const char * name = 0 )

Creates a validator object which accepts all integers.

QIntValidator::QIntValidator ( int bottom, int top, QWidget * parent, const char * name = 0 )

Creates a validator object which accepts all integers from bottom up to and including top.

QIntValidator::~QIntValidator ()

Deletes the validator and frees up any storage used.

int QIntValidator::bottom () const

Returns the lowest valid number according to this validator.

See also: top() and setRange().

void QIntValidator::setRange ( int bottom, int top ) [virtual]

Sets the validator to accept only number from bottom up to an including top.

int QIntValidator::top () const

Returns the highest valid number according to this validator.

See also: bottom() and setRange().


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.

It was generated from the following files:


Copyright İ 1998 Troll TechTrademarks
Qt version 1.42