Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QStyleOptionProgressBar Class Reference

The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress bar. More...

#include <QStyleOptionProgressBar>

Inherits QStyleOption.

List of all members.

Public Types

Read-Only Properties

Public Functions


Detailed Description

The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress bar.

The QStyleOptionProgressBar structure is used to draw QProgressBars.


Member Type Documentation

enum QStyleOptionProgressBar::ProgressBarFeature
typedef QStyleOptionProgressBar::ProgressBarFeatures

This describes features for a progress bar.

QStyleOptionProgressBar::NoneIndicates a normal progress bar.
QStyleOptionProgressBar::CenterIndicatorIndicates that the percentage indicator progressBarString should be centered.
QStyleOptionProgressBar::PercentageVisibleIndicates that the progressBarString should also be drawn
QStyleOptionProgressBar::IndicatorFollowsStyleIndicates that the progressBarString should follow the style.

The ProgressBarFeatures typedef can store a combination of ProgressBarFeature values.

See also QProgressBar::percentageVisible, ., features, QProgressBar::indicatorFollowsStyle, and QProgressBar::centerIndicator.


Property Documentation

features : ProgressBarFeatures

This property holds describes the features of the progress bar.

This is a bitwise OR of the features of the progress bar.

See also ProgressBarFeature.

progress : int

This property holds the current progress for the progress bar.

The current progress. If the value is -1, it indicates that the progress hasn't started yet.

progressString : QString

This property holds the progress of the progress bar as a string.

This is the progress in terms of a string. If the string is empty, it indicates that the progress bar hasn't started yet.

See also QProgressBar::progressString.

totalSteps : int

This property holds the total steps for the progress bar.

The total number of steps for the progress bar. If the totalSteps is zero, it indicates that a busy indicator should be drawn instead of a standard progress bar.

See also QProgressBar::totalSteps.


Member Function Documentation

QStyleOptionProgressBar::QStyleOptionProgressBar ( int version )

Construct a QStyleOptionProgressBar with version version. The values are either 0 or empty. It is the responsibilty of the developer to populate the structure with the proper values.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1