A label showing progress related time values. More...
#include <QxtProgressLabel>
Inherits QLabel.
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:
![]() |
| QxtProgressLabel in action. |
This property holds the content format of the progress label.
The content of the label is formatted according to this property. The default value is an empty string which defaults to "ETA: %r".
The following variables may be used in the format string:
Variable | Output |
%e | elapsed time |
%r | remaining time |
See also: timeFormatAccess Functions:
This property holds the time format of the progress label.
Time values are formatted according to this property. The default value is an empty string which defaults to "mm:ss".
Access Functions:
This property holds the update interval of the progress label.
The content of the progress label is updated according to this interval. A negative interval makes the content to update only during value changes. The default value is -1.
Access Functions:
Destructs the progress label.
Sets the current value to value.
Note: Calling this slot by hand has no effect. Connect this slot to QProgressBar::valueChange().
Refreshes the content.
Restarts the calculation of elapsed and remaining times.
| Copyright © 2007 Qxt Foundation | Trademarks | Qt Extension Library 0.5 |