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

📄 qprogressbar.3qt

📁 Linux 下的图形编程环境。
💻 3QT
字号:
'\" t.TH QProgressBar 3qt "5 March 2001" "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 NAMEQProgressBar \- Horizontal progress bar.br.PP\fC#include <qprogressbar.h>\fR.PPInherits QFrame..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQProgressBar\fR ( QWidget * " "parent" "=0, const char * " "name" "=0, WFlags " "f" "=0 ) ".br.ti -1c.BI "\fBQProgressBar\fR ( int " "totalSteps" ", QWidget * " "parent" "=0, const char * " "name" "=0, WFlags " "f" "=0 ) ".br.ti -1c.BI "int \fBtotalSteps\fR () const".br.ti -1c.BI "int \fBprogress\fR () const".br.ti -1c.BI "void \fBsetCenterIndicator\fR ( bool on ) ".br.ti -1c.BI "bool \fBcenterIndicator\fR () const".br.ti -1c.BI "void \fBsetIndicatorFollowsStyle\fR ( bool ) ".br.ti -1c.BI "bool \fBindicatorFollowsStyle\fR () const".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "void \fBreset\fR () ".br.ti -1c.BI "virtual void \fBsetTotalSteps\fR ( int totalSteps ) ".br.ti -1c.BI "virtual void \fBsetProgress\fR ( int progress ) ".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "virtual void \fBdrawContentsMask\fR ( QPainter * ) ".br.ti -1c.BI "virtual bool \fBsetIndicator\fR ( QString & " "progress_str" ", int " "progress" ", int totalSteps ) ".br.in -1c.SS "Properties".nf.TSl l l l l- - - - -l l l l l.Type	Name	READ	WRITE	Optionsint	totalSteps	totalSteps	setTotalStepsint	progress	progress	setProgressbool	centerIndicator	centerIndicator	setCenterIndicatorbool	indicatorFollowsStyle	indicatorFollowsStyle	setIndicatorFollowsStyle.TE.fi.SH DESCRIPTIONThe QProgressBar widget provides a horizontal progress bar..PPA progress bar is used to give the user an indication of progress of an operation. To reassure them that the application has not crashed..PPQProgressBar only implements the basic progress display, while QProgressDialog provides a fuller encapsulation..PP.ce 1.B "[Image Omitted]".PP.ce 1.B "[Image Omitted]".PPSee also QProgressDialog and GUI Design Handbook: Progress Indicator.SH MEMBER FUNCTION DOCUMENTATION.SH "QProgressBar::QProgressBar ( QWidget * parent=0, const char * name=0, WFlags f=0 )"Constructs a progress bar..PPThe total number of steps is set to 100 by default..PP\fIparent, name\fR and \fIf\fR are sent to the QFrame::QFrame() constructor..PPSee also setTotalSteps()..SH "QProgressBar::QProgressBar ( int totalSteps, QWidget * parent=0, const char * name=0, WFlags f=0 )"Constructs a progress bar..PP\fItotalSteps\fR is the total number of steps in the operation of which this progress bar shows the progress. For example, if the operation is to examine 50 files, this value would be 50, then before examining the first file, call setProgress(0), and after examining the last file call setProgress(50)..PP\fIparent, name\fR and \fIf\fR are sent to the QFrame::QFrame() constructor..PPSee also setTotalSteps() and setProgress()..SH "bool QProgressBar::centerIndicator () const"Returns where the indicator string should be displayed if indicatorFollowsStyle() is TRUE..PPSee also setCenterIndicator(), indicatorFollowsStyle(), setIndicatorFollowsStyle() and setIndicator()..SH "void QProgressBar::drawContents ( QPainter * p ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QFrame..SH "void QProgressBar::drawContentsMask ( QPainter * p ) \fC[virtual protected]\fR"Draws the progressbar contents mask using the painter \fIp.\fR Used only in transparent mode..PPSee also QWidget::setAutoMask();..PPReimplemented from QFrame..SH "bool QProgressBar::indicatorFollowsStyle () const"Returns whether the display of the indicator string should follow the GUI style or not..PPSee also setIndicatorFollowsStyle(), setCenterIndicator(), centerIndicator() and setIndicator()..SH "QSize QProgressBar::minimumSizeHint () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "int QProgressBar::progress () const"Returns the current amount of progress, or -1 if the progress counting has not started..PPSee also setProgress()..SH "void QProgressBar::reset () \fC[slot]\fR"Reset the progress bar. The progress bar `rewinds'..SH "void QProgressBar::setCenterIndicator ( bool on )"If set to TRUE (the default) the progress bar always shows the indicator text at the center of the progress bar, regardless of the GUI style currently set. If set to FALSE the progress bar always shows the indicator text outside the progress bar, regardless of the GUI style currently set..PPCalling this function always sets indicatorFollowsStyle() to FALSE..PPSee also centerIndicator(), indicatorFollowsStyle(), setIndicatorFollowsStyle() and setIndicator()..SH "bool QProgressBar::setIndicator ( QString & indicator, int progress, int totalSteps ) \fC[virtual protected]\fR"This method is called to generate the text displayed in the center of the progress bar..PPThe progress may be negative, indicating that the bar is in the "reset" state before any progress is set..PPThe default implementation it is the percentage of completion or blank in the reset state..PPThis method should return FALSE if the string is unchanged since the last call to the method, to allow efficient repainting of the progress bar..SH "void QProgressBar::setIndicatorFollowsStyle ( bool on )"When set to TRUE (the default) the positioning of the indicator string follows the GUI style. When set to FALSE the indicator position is decided by the value of indicatorFollowsStyle()..PPSee also indicatorFollowsStyle(), centerIndicator(), setCenterIndicator() and setIndicator()..SH "void QProgressBar::setProgress ( int progress ) \fC[virtual slot]\fR"Sets the current amount of progress made to \fIprogress\fR units of the total number of steps..PPSee also progress() and totalSteps()..SH "void QProgressBar::setTotalSteps ( int totalSteps ) \fC[virtual slot]\fR"Sets the total number of steps to \fItotalSteps.\fR.PPSee also totalSteps()..SH "void QProgressBar::show () \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "QSize QProgressBar::sizeHint () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "QSizePolicy QProgressBar::sizePolicy () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QProgressBar::styleChange ( QStyle & old ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "int QProgressBar::totalSteps () const"Returns the total number of steps..PPSee also  setTotalSteps()..SH "SEE ALSO".BR http://doc.trolltech.com/qprogressbar.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 (qprogressbar.3qt) and the Qtversion (2.3.0).

⌨️ 快捷键说明

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