Home · Modules · Classes · Namespaces · Functions

QxtProgressLabel Class Reference
[QxtGui module]

The QxtProgressLabel widget is a label showing progress related time values. More...

    #include <QxtProgressLabel>

Inherits QLabel.

Public Functions

Public Slots

Additional Inherited Members


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)));

"QxtProgressLabel in action."


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().


Copyright © 2007-2010 Qxt Foundation
Qxt 0.6.1