qprogressbar.3qt

来自「tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件」· 3QT 代码 · 共 187 行

3QT
187
字号
.TH QProgressBar 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech 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.SH SYNOPSIS.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 "virtual QSize \fBsizeHint\fR () const".br.ti -1c.BI "virtual QSizePolicy \fBsizePolicy\fR () const".br.ti -1c.BI "virtual QSize \fBminimumSizeHint\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.ti -1c.BI "virtual void \fBshow\fR ()".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 \fBdrawContents\fR ( QPainter * )".br.ti -1c.BI "virtual void \fBdrawContentsMask\fR ( QPainter * )".br.ti -1c.BI "virtual bool \fBsetIndicator\fR ( QString & " "progress_str" ", int " "progress" ", int totalSteps )".br.ti -1c.BI "virtual void \fBstyleChange\fR ( QStyle & )".br.in -1c.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<img src=qprogbar-m.png> <img src=qprogbar-w.png>.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"Handles paint events for the progress bar. In WindowsStyle, colorGroup().text() and colorGroup::highlight() are used. In MotifStyle, colorGroup().base() is also used..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 posion 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 "QSize QProgressBar::sizeHint () const \fC[virtual]\fR"Returns a size which fits the contents of the progress bar..PPReimplemented from QWidget..SH "QSizePolicy QProgressBar::sizePolicy () const \fC[virtual]\fR"Specifies that this widget can use more, but is able to survive on less, horizontal space; and is fixed vertically..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://www.troll.no/qt/qprogressbar.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

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