64 static const int PositionLeft = 180;
65 static const int PositionTop = 90;
66 static const int PositionRight = 0;
67 static const int PositionBottom = -90;
79 void setNullPosition(
double position);
96 void setBarStyle(BarStyle style);
107 void setOutlinePenWidth(
double penWidth);
117 void setDataPenWidth(
double penWidth);
137 void setDataColors(
const QGradientStops& stopPoints);
145 void setFormat(
const QString&
format);
154 QString
format()
const {
return m_format; }
160 void setDecimals(
int count);
171 double value()
const {
return m_value; }
191 void setRange(
double min,
double max);
199 void setMinimum(
double min);
207 void setMaximum(
double max);
212 void setValue(
double val);
217 void setValue(
int val);
220 virtual void paintEvent(QPaintEvent*
event);
221 virtual void drawBackground(QPainter& p,
const QRectF& baseRect);
222 virtual void drawBase(QPainter& p,
const QRectF& baseRect);
223 virtual void drawValue(QPainter& p,
224 const QRectF& baseRect,
227 virtual void calculateInnerRect(
const QRectF& baseRect,
230 double& innerRadius);
231 virtual void drawInnerBackground(QPainter& p,
const QRectF& innerRect);
232 virtual void drawText(QPainter& p,
233 const QRectF& innerRect,
236 virtual QString valueToText(
double value)
const;
237 virtual void valueFormatChanged();
244 void rebuildDataBrushIfNeeded();
259 static const int UF_VALUE = 1;
260 static const int UF_PERCENT = 2;
261 static const int UF_MAX = 4;
filament::Texture::InternalFormat format
The QRoundProgressBar class represents a circular progress bar and maintains its API similar to the Q...
virtual QSize minimumSizeHint() const
BarStyle barStyle() const
Returns current progree bar style.
double outlinePenWidth() const
Returns width of the outline circle pen.
double value() const
Returns current value shown on the widget.
double dataPenWidth() const
Returns width of the data circle pen.
int decimals() const
Returns number of decimals to show after the comma (default is 1).
double minimum() const
Returns minimum of the allowed value range.
QGradientStops m_gradientData
QString format() const
Returns the string used to generate the current text.
BarStyle
The BarStyle enum defines general look of the progress bar.
@ StylePie
Pie style (filled pie segment with the text in center)
@ StyleDonut
Donut style (filled torus around the text)
virtual bool hasHeightForWidth() const
virtual int heightForWidth(int w) const
double nullPosition() const
Return position (in degrees) of minimum value.
double maximum() const
Returns maximum of the allowed value range.
#define QPCL_ENGINE_LIB_API