⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdoublevalidator.3qt

📁 Trolltech公司发布的基于C++图形开发环境
💻 3QT
字号:
'\" t.TH QDoubleValidator 3qt "24 January 2005" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 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.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".nf.TSl l l l l- - - - -l l l l l.Type	Name	READ	WRITE	Optionsdouble	bottom	bottom	setBottomdouble	top	top	setTopint	decimals	decimals	setDecimals.TE.fi.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.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qdoublevalidator.3qt) and the Qtversion (2.3.10).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -