QxtProgressLabel Class Reference
[QxtGui module]
The QxtProgressLabel widget is a label showing progress related time values. More...
#include <QxtProgressLabel>
Inherits QLabel.
Public Functions
- 22 public functions inherited from QLabel
- 13 public functions inherited from QFrame
- 207 public functions inherited from QWidget
- 12 public functions inherited from QPaintDevice
- 29 public functions inherited from QObject
Public Slots
- 7 public slots inherited from QLabel
- 19 public slots inherited from QWidget
- 1 public slot inherited from QObject
Additional Inherited Members
- 10 properties inherited from QLabel
- 6 properties inherited from QFrame
- 57 properties inherited from QWidget
- 1 property inherited from QObject
- 2 signals inherited from QLabel
- 1 signal inherited from QWidget
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QWidget
- 1 static public member inherited from QPaintDevice
- 4 static public members inherited from QObject
- 37 protected functions inherited from QWidget
- 1 protected function inherited from QPaintDevice
- 7 protected functions inherited from QObject
- 1 protected slot inherited from QWidget
- 1 protected type inherited from QPaintDevice
- 2 protected variables inherited from QObject
Detailed Description
The QxtProgressLabel widget is a label showing progress related time values.
QxtProgressLabel is a label widget able to show elapsed and remaining time of a progress. Usage is as simple as connecting signal QProgressBar::valueChanged() to slot QxtProgressLabel::setValue().
Example usage:
QProgressBar* bar = new QProgressBar(this);
QxtProgressLabel* label = new QxtProgressLabel(this);
connect(bar, SIGNAL(valueChanged(int)), label, SLOT(setValue(int)));

Member Function Documentation
QxtProgressLabel::QxtProgressLabel ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
Constructs a new QxtProgressLabel with parent and flags.
QxtProgressLabel::QxtProgressLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags flags = 0 )
Constructs a new QxtProgressLabel with text, parent and flags.
QxtProgressLabel::~QxtProgressLabel () [virtual]
Destructs the progress label.
QString QxtProgressLabel::contentFormat () const
See also setContentFormat().
void QxtProgressLabel::refresh () [slot]
Refreshes the content.
void QxtProgressLabel::restart () [slot]
Restarts the calculation of elapsed and remaining times.
void QxtProgressLabel::setContentFormat ( const QString & format )
See also contentFormat().
void QxtProgressLabel::setTimeFormat ( const QString & format )
See also timeFormat().
void QxtProgressLabel::setUpdateInterval ( int msecs )
See also updateInterval().
void QxtProgressLabel::setValue ( int value ) [slot]
Sets the current value to value.
Note: Calling this slot by hand has no effect. Connect this slot to QProgressBar::valueChange().
QString QxtProgressLabel::timeFormat () const
See also setTimeFormat().
int QxtProgressLabel::updateInterval () const
See also setUpdateInterval().