class KProgress

A progress indicator widget. More...

Definition#include <kprogress.h>
InheritsQFrame (qt), QRangeControl (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Slots

Signals

Protected Methods


Detailed Description

A stylized progress bar.

KProgress is derived from QFrame and QRangeControl, so you can use all the methods from those classes. The only difference is that setValue() is now made a slot, so you can connect stuff to it.

Details

None of the constructors take line step and page step as arguments, so by default they're set to 1 and 10 respectively.

The Blocked style ignores the textEnabled() setting and displays no text, since it looks truly ugly (and for other reasons). Signal percentageChanged() is emitted whenever the value changes so you can set up a different widget to display the current percentage complete and connect the signal to it.

void  setValue (int value)

[slot]

Set the current value of the progress bar to value.

This must be a number in the range 0..100.

Reimplemented from QRangeControl

void  advance (int prog)

[slot]

Advance the progress bar by prog.

This method is provided for convenience and is equivalent with setValue(value()+prog).

void  percentageChanged (int)

[signal]

Emitted when the state of the progress bar changes.

void  valueChange ()

[protected]

@reimplemented

Reimplemented from QRangeControl

void  rangeChange ()

[protected]

@reimplemented

Reimplemented from QRangeControl

void  styleChange ( QStyle& )

[protected]

@reimplemented

Reimplemented from QWidget

void  paletteChange ( const QPalette & )

[protected]

@reimplemented

Reimplemented from QWidget

void  drawContents ( QPainter * )

[protected]

@reimplemented

Reimplemented from QFrame