📄 qintvalidator.3qt
字号:
'\" t.TH QIntValidator 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 NAMEQIntValidator \- Range checking of integers.br.PP\fC#include <qvalidator.h>\fR.PPInherits QValidator..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQIntValidator\fR ( QWidget * " "parent" ", const char * " "name" " = 0 ) ".br.ti -1c.BI "\fBQIntValidator\fR ( int " "bottom" ", int " "top" ", QWidget * " "parent" ", const char * " "name" " = 0 ) ".br.ti -1c.BI "\fB~QIntValidator\fR () ".br.ti -1c.BI "QValidator::State \fBvalidate\fR ( QString &, int & ) const".br.ti -1c.BI "void \fBsetBottom\fR ( int ) ".br.ti -1c.BI "void \fBsetTop\fR ( int ) ".br.ti -1c.BI "virtual void \fBsetRange\fR ( int " "bottom" ", int top ) ".br.ti -1c.BI "int \fBbottom\fR () const".br.ti -1c.BI "int \fBtop\fR () const".br.in -1c.SS "Properties".nf.TSl l l l l- - - - -l l l l l.Type Name READ WRITE Optionsint bottom bottom setBottomint top top setTop.TE.fi.SH DESCRIPTIONThe QIntValidator class provides range checking of integers..PPQIntValidator provides a lower and an upper bound. It does not provide a fixup() function..PPSee also QDoubleValidator..SH MEMBER FUNCTION DOCUMENTATION.SH "QIntValidator::QIntValidator ( QWidget * parent, const char * name = 0 )"Constructs a validator object which accepts all integers..SH "QIntValidator::QIntValidator ( int bottom, int top, QWidget * parent, const char * name = 0 )"Constructs a validator object which accepts all integers from \fIbottom\fR up to and including \fItop.\fR.SH "QIntValidator::~QIntValidator ()"Destroys the validator, freeing any storage and other resources used..SH "int QIntValidator::bottom () const"Returns the lowest valid number according to this validator..PPSee also top() and setRange()..SH "void QIntValidator::setBottom ( int bottom )"Sets the validator to accept no numbers smaller than \fIbottom.\fR.PPSee also setRange()..SH "void QIntValidator::setRange ( int bottom, int top ) \fC[virtual]\fR"Sets the validator to accept only number from \fIbottom\fR up to an including \fItop.\fR.SH "void QIntValidator::setTop ( int top )"Sets the validator to accept no numbers bigger than \fItop.\fR.PPSee also setRange()..SH "int QIntValidator::top () const"Returns the highest valid number according to this validator..PPSee also bottom() and setRange()..SH "QValidator::State QIntValidator::validate( QString & input, int & ) const"Returns \fIAcceptable\fR if \fIinput\fR contains a number in the legalrange, \fIIntermediate\fR if it contains another integer or is empty,and \fIInvalid\fR if \fIinput\fR is not an integer..SH "SEE ALSO".BR http://doc.trolltech.com/qintvalidator.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 (qintvalidator.3qt) and the Qtversion (2.3.10).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -