KProgress -- progress indicator widget for KDE
![]() | Orientation Possible values for orientation |
![]() | BarStyle Possible values for bar style |
![]() | KProgress (QWidget *parent=0, const char *name=0) Construct a default KProgress bar. |
![]() | KProgress ( Orientation , QWidget *parent=0, const char *name=0) Construct a KProgress bar with an orientation. |
![]() | KProgress (int minValue, int maxValue, int value, Orientation , QWidget *parent=0, const char *name=0) Construct a KProgress bar with minimum, maximum and initial value. |
![]() | ~KProgress () Destructor |
![]() | setBarStyle ( BarStyle style) Set the progress bar style. |
![]() | setBarColor (const QColor &) Set the color of the progress bar. |
![]() | setBarPixmap (const QPixmap &) Set a pixmap to be shown in the progress bar. |
![]() | setOrientation ( Orientation ) Set the orientation of the progress bar. |
![]() | setTextEnabled (bool) Who knows what this does? |
![]() | barStyle () const Retrieve the bar style. |
![]() | barColor () const Retrieve the bar color. |
![]() | barPixmap () const Retrieve the bar pixmap. |
![]() | orientation () const Retrieve the orientation. |
![]() | textEnabled () const Who knows what this does? |
KProgress is derived from QFrame and QRangeControl, so you can use all the methods from those classes. The only difference is that setValue(int) is now made a slot, so you can connect stuff to it. 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 there are other reasons. Signal percentageChanged(int) is emmitted whenever the value changes so you can setup a different widget to display percentage and connect the signal to it.
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling