qdoublevalidator man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



QDoubleValidator(3qt)			    QDoubleValidator(3qt)

NAME
       QDoubleValidator - Range checking of floating-point
       numbers

       #include <qvalidator.h>

       Inherits QValidator.

   Public Members
       QDoubleValidator ( QWidget * parent, const char * name = 0
	   )
       QDoubleValidator ( double bottom, double top, int
	   decimals, QWidget * parent, const char * name = 0 )
       ~QDoubleValidator ()
       QValidator::State validate ( QString &, int & ) const
       virtual void setRange ( double bottom, double top, int
	   decimals = 0 )
       void setBottom ( double )
       void setTop ( double )
       void setDecimals ( int )
       double bottom () const
       double top () const
       int decimals () const

   Properties
       Type	Name	   READ	      WRITE	    Options
       -----------------------------------------------------
       double	bottom	   bottom     setBottom
       double	top	   top	      setTop
       int	decimals   decimals   setDecimals

DESCRIPTION
       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.

       See also QIntValidator.

MEMBER FUNCTION DOCUMENTATION
QDoubleValidator::QDoubleValidator ( QWidget * parent, const char
       * name = 0 )
       Constructs a validator object which accepts all doubles.

QDoubleValidator::QDoubleValidator ( double bottom, double top,
       int decimals, QWidget * parent, const char * name = 0 )
       Constructs a validator object which accepts all doubles
       from bottom up to and including top with at most decimals
       digits after the decimal point.

Trolltech AS		   13 June 2001				1

QDoubleValidator(3qt)			    QDoubleValidator(3qt)

QDoubleValidator::~QDoubleValidator ()
       Destroys the validator, freeing any storage and other
       resources used.

double QDoubleValidator::bottom () const
       Returns the lowest valid number according to this
       validator.

       See also top(), decimals() and setRange().

int QDoubleValidator::decimals () const
       Returns the largest number of digits a valid number can
       have after its decimal point.

       See also bottom(), top() and setRange().

void QDoubleValidator::setBottom ( double bottom )
       Sets the validator to accept no numbers smaller than
       bottom.

       See also setRange().

void QDoubleValidator::setDecimals ( int decimals )
       Sets the maximum number of digits after the decimal point.

void QDoubleValidator::setRange ( double bottom, double top, int
       decimals = 0 ) [virtual]
       Sets the validator to accept numbers from bottom up to and
       including top with at most decimals digits after the
       decimal point.

void QDoubleValidator::setTop ( double top )
       Sets the validator to accept no numbers bigger than top.

       See also setRange().

double QDoubleValidator::top () const
       Returns the highest valid number according to this
       validator.

       See also bottom(), decimals() and setRange().

QValidator::State QDoubleValidator::validate( QString & input,
       int & ) const
       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.

SEE ALSO
       http://doc.trolltech.com/qdoublevalidator.html
       http://www.trolltech.com/faq/tech.html

Trolltech AS		   13 June 2001				2

QDoubleValidator(3qt)			    QDoubleValidator(3qt)

COPYRIGHT
       Copyright 1992-2001 Trolltech AS,
       http://www.trolltech.com.  See the license file included
       in the distribution for a complete license statement.

AUTHOR
       Generated automatically from the source code.

BUGS
       If you find a bug in Qt, please report it as described in
       http://doc.trolltech.com/bughowto.html.	Good bug reports
       make our job much simpler. Thank you.

       In case of content or formattting problems with this
       manual page, please report them to qt-bugs@trolltech.com.
       Please include the name of the manual page
       (qdoublevalidator.3qt) and the Qt version (2.3.1).

Trolltech AS		   13 June 2001				3

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net