📄 qdoublevalidator.3qt
字号:
.TH QDoubleValidator 3qt "3 September 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQDoubleValidator \- Range checking of floating-point numbers.SH SYNOPSIS.br.PP\fC#include <qvalidator.h>\fR.PPInherits QValidator..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQDoubleValidator\fR ( QWidget * " "parent" ", const char * " "name" " = 0 ) ".br.ti -1c.BI "\fBQDoubleValidator\fR ( double " "bottom" ", double " "top" ", int " "decimals" ", QWidget * " "parent" ", const char * " "name" " = 0 ) ".br.ti -1c.BI "\fB~QDoubleValidator\fR () ".br.ti -1c.BI "QValidator::State \fBvalidate\fR ( QString &, int & ) const".br.ti -1c.BI "virtual void \fBsetRange\fR ( double " "bottom" ", double " "top" ", int " "decimals" " = 0 ) ".br.ti -1c.BI "void \fBsetBottom\fR ( double ) ".br.ti -1c.BI "void \fBsetTop\fR ( double ) ".br.ti -1c.BI "void \fBsetDecimals\fR ( int ) ".br.ti -1c.BI "double \fBbottom\fR () const".br.ti -1c.BI "double \fBtop\fR () const".br.ti -1c.BI "int \fBdecimals\fR () const".br.in -1c.SS "Properties"<table border=1 cellpadding=3 cellspacing=0> <tr><th>Type<th>Name<th>READ<th>WRITE<th>Options <tr><td>double<td>bottom<td>bottom<td>setBottom<td> <tr><td>double<td>top<td>top<td>setTop<td> <tr><td>int<td>decimals<td>decimals<td>setDecimals<td> </table>.SH DESCRIPTIONThe QDoubleValidator class provides range checking of floating-point numbers..PPQDoubleValidator 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..PPSee also QIntValidator..SH MEMBER FUNCTION DOCUMENTATION.SH "QDoubleValidator::QDoubleValidator ( QWidget * parent, const char * name = 0 )"Constructs a validator object which accepts all doubles..SH "QDoubleValidator::QDoubleValidator ( double bottom, double top, int decimals, QWidget * parent, const char * name = 0 )"Constructs a validator object which accepts all doubles from \fIbottom\fR up to and including \fItop\fR with at most \fIdecimals\fR digits after the decimal point..SH "QDoubleValidator::~QDoubleValidator ()"Destroys the validator, freeing any storage and other resources used..SH "double QDoubleValidator::bottom () const"Returns the lowest valid number according to this validator..PPSee also top(), decimals() and setRange()..SH "int QDoubleValidator::decimals () const"Returns the largest number of digits a valid number can have after its decimal point..PPSee also bottom(), top() and setRange()..SH "void QDoubleValidator::setBottom ( double bottom )"Sets the validator to accept no numbers smaller than \fIbottom.\fR.PPSee also setRange()..SH "void QDoubleValidator::setDecimals ( int decimals )"Sets the maximum number of digits after the decimal point..SH "void QDoubleValidator::setRange ( double bottom, double top, int decimals = 0 ) \fC[virtual]\fR"Sets the validator to accept numbers from \fIbottom\fR up to and including \fItop\fR with at most \fIdecimals\fR digits after the decimal point..SH "void QDoubleValidator::setTop ( double top )"Sets the validator to accept no numbers bigger than \fItop.\fR.PPSee also setRange()..SH "double QDoubleValidator::top () const"Returns the highest valid number according to this validator..PPSee also bottom(), decimals() and setRange()..SH "QValidator::State QDoubleValidator::validate( QString & input, int & ) const"Returns \fIAcceptable\fR if \fIinput\fR contains a number in the legalrange and format, \fIIntermediate\fR if it contains another number, anumber with too many digits after the decimal point or is empty, and\fIInvalid\fR if \fIinput\fR is not a number..SH "SEE ALSO".BR http://doc.trolltech.com/qdoublevalidator.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -