Kstars
QRoundProgressBar.h
29 * QRoundProgressBar currently supports Donut, Pie and Line styles. See setBarStyle() for more details.
36 * - *QPalette::Base* background of the non-filled progress bar area (should be set to Qt::NoBrush to make it transparent)
37 * - *QPalette::AlternateBase* background of the central circle where the text is shown (for \a Donut style)
45 * \a Donut and \a Pie styles allow to use color gradient for currernt value area instead of plain brush fill.
49 * Value text is generally drawn inside the QRoundProgressBar using its `font()` and \a QPalette::Text role from its `palette()`.
51 * To define pattern of the text, use setFormat() function (see Qt's \a QProgressBar for more details).
94 };
130 * *Warning*: this function will override widget's `palette()` to set dynamically created gradient brush.
132 * @param stopPoints List of colors (should have at least 2 values, see Qt's \a QGradientStops for more details).
134 * corresponds to the maximum(). Other colors will be distributed accordingly to the defined ranges (see setRange()).
The QRoundProgressBar class represents a circular progress bar and maintains its API similar to the Q...
Definition QRoundProgressBar.h:61
void setDataPenWidth(double penWidth)
Sets width of the data circle pen.
Definition QRoundProgressBar.cpp:113
void setValue(double val)
Sets a value which will be shown on the widget.
Definition QRoundProgressBar.cpp:60
void setMinimum(double min)
Defines minimum of the allowed value range.
Definition QRoundProgressBar.cpp:50
void setOutlinePenWidth(double penWidth)
Sets width of the outline circle pen.
Definition QRoundProgressBar.cpp:103
void setDecimals(int count)
Sets number of decimals to show after the comma (default is 1).
Definition QRoundProgressBar.cpp:150
double outlinePenWidth() const
Returns width of the outline circle pen.
Definition QRoundProgressBar.h:114
void setMaximum(double max)
Defines maximum of the allowed value range.
Definition QRoundProgressBar.cpp:55
void setFormat(const QString &format)
Defines the string used to generate the current text.
Definition QRoundProgressBar.cpp:134
int decimals() const
Returns number of decimals to show after the comma (default is 1).
Definition QRoundProgressBar.h:164
void setNullPosition(double position)
Defines position of minimum value.
Definition QRoundProgressBar.cpp:80
QString format() const
Returns the string used to generate the current text.
Definition QRoundProgressBar.h:153
void setRange(double min, double max)
Defines minimum und maximum of the allowed value range.
Definition QRoundProgressBar.cpp:31
BarStyle
The BarStyle enum defines general look of the progress bar.
Definition QRoundProgressBar.h:87
void setDataColors(const QGradientStops &stopPoints)
Sets colors of the visible data and makes gradient brush from them.
Definition QRoundProgressBar.cpp:123
double nullPosition() const
Return position (in degrees) of minimum value.
Definition QRoundProgressBar.h:75
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
virtual bool event(QEvent *event) override
QStyle * style() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.