|
DtkWidget
DTK Widget module
|
可以使用 DCircleProgress 类快速创建环形进度条控件. DCircleProgress 提供了一个可控制颜色并可以包含文字显示的环形进度条控件。可以快速创建底色为 backgroundColor, 进度颜色为 chunkColor 的环形进度条。 更多...
信号 | |
| void | clicked () |
| void | mouseEntered () |
| void | mouseLeaved () |
| void | valueChanged (const int value) const |
Public 成员函数 | |
| DCircleProgress (QWidget *parent=0) | |
| int | value () const |
| 环形进度条的进度值。 最大值为 100 ,最小值为 0 。 | |
| void | setValue (int value) |
| 设置环形进度条的进度值。 最大值为 100 ,最小值为 0 。将根据该值和最大值(100)的比例关系绘制进度。 | |
| const QString | text () const |
| 环形进度条旁边的文字。 | |
| void | setText (const QString &text) |
| 设置环形进度条旁边的文字 | |
| const QColor | backgroundColor () const |
| void | setBackgroundColor (const QColor &color) |
| 设置环形进度条的背景色。 | |
| const QColor | chunkColor () const |
| 环形进度条的前景色,用以标识进度。 | |
| void | setChunkColor (const QColor &color) |
| 设置用以标识进度环形进度条的前景色。 | |
| int | lineWidth () const |
| 环形进度条的环形宽度。 | |
| void | setLineWidth (const int width) |
| 设置环形进度条的环形宽度。 | |
| QLabel * | topLabel () |
| DCircleProgress::topLabel | |
| QLabel * | bottomLabel () |
| DCircleProgress::bottomLabel | |
属性 | |
| QColor | backgroundColor |
| QColor | chunkColor |
| int | lineWidth |
可以使用 DCircleProgress 类快速创建环形进度条控件. DCircleProgress 提供了一个可控制颜色并可以包含文字显示的环形进度条控件。可以快速创建底色为 backgroundColor, 进度颜色为 chunkColor 的环形进度条。
| QLabel * DCircleProgress::bottomLabel | ( | ) |
| const QColor DCircleProgress::chunkColor | ( | ) | const |
环形进度条的前景色,用以标识进度。
|
signal |
This signal is emitted when the user clicks the DCircleProgress widget.
该信号将会在用户点击 DCircleProgress 控件时发出。
| int DCircleProgress::lineWidth | ( | ) | const |
环形进度条的环形宽度。
|
signal |
This signal is emitted when the user's mouse pointer entered the DCircleProgress widget.
该信号将会在用户的鼠标指针移入 DCircleProgress 控件时发出。
|
signal |
This signal is emitted when the user's mouse pointer leaved the DCircleProgress widget.
该信号将会在用户的鼠标指针离开 DCircleProgress 控件时发出。
| void DCircleProgress::setBackgroundColor | ( | const QColor & | color | ) |
设置环形进度条的背景色。
| [in] | color | 环形进度条的背景色 |
| void DCircleProgress::setChunkColor | ( | const QColor & | color | ) |
设置用以标识进度环形进度条的前景色。
| [in] | color | 环形进度条的前景色 |
| void DCircleProgress::setLineWidth | ( | const int | width | ) |
| void DCircleProgress::setText | ( | const QString & | text | ) |
设置环形进度条旁边的文字
| [in] | text | 环形进度条旁边的文字 |
| void DCircleProgress::setValue | ( | int | value | ) |
设置环形进度条的进度值。 最大值为 100 ,最小值为 0 。将根据该值和最大值(100)的比例关系绘制进度。
| QLabel * DCircleProgress::topLabel | ( | ) |
| int DCircleProgress::value | ( | ) | const |
环形进度条的进度值。 最大值为 100 ,最小值为 0 。