DtkWidget 5.6.0.2
DTK Widget module
信号 | Public 成员函数 | Protected 成员函数 | 属性 | 所有成员列表
Dtk::Widget::DCircleProgress类 参考

可以使用 DCircleProgress 类快速创建环形进度条控件. 更多...

类 Dtk::Widget::DCircleProgress 继承关系图:
Inheritance graph
[图例]
Dtk::Widget::DCircleProgress 的协作图:
Collaboration graph
[图例]

信号

void clicked ()
 
void mouseEntered ()
 
void mouseLeaved ()
 
void valueChanged (const int value) const
 

Public 成员函数

 DCircleProgress (QWidget *parent=0)
 
int value () const
 Progress value of the progressbar. 更多...
 
void setValue (int value)
 Set the progress value of the progressbar. 更多...
 
const QString text () const
 Text display near the circle progressbar. 更多...
 
void setText (const QString &text)
 Set the text display near the circle progressbar. 更多...
 
const QColor backgroundColor () const
 Background color of the circle progressbar. 更多...
 
void setBackgroundColor (const QColor &color)
 Set the background color of the circle progressbar. 更多...
 
const QColor chunkColor () const
 Foreground color of the progressbar to indicate progress. 更多...
 
void setChunkColor (const QColor &color)
 Set the foreground color of the progressbar to indicate progress. 更多...
 
int lineWidth () const
 circle line width of the circle progressbar. 更多...
 
void setLineWidth (const int width)
 Set the circle line width of the circle progressbar. 更多...
 
QLabel * topLabel ()
 DCircleProgress::topLabel 更多...
 
QLabel * bottomLabel ()
 DCircleProgress::bottomLabel 更多...
 

Protected 成员函数

void paintEvent (QPaintEvent *e) Q_DECL_OVERRIDE
 
void mouseReleaseEvent (QMouseEvent *e) Q_DECL_OVERRIDE
 
void enterEvent (QEvent *e) Q_DECL_OVERRIDE
 
void leaveEvent (QEvent *e) Q_DECL_OVERRIDE
 

属性

QColor backgroundColor
 
QColor chunkColor
 
int lineWidth
 

详细描述

可以使用 DCircleProgress 类快速创建环形进度条控件.

\inmodule dtkwidget

Use DCircleProgress to create a circle progress display widget.

DCircleProgress 提供了一个可控制颜色并可以包含文字显示的环形进度条控件。可以快速创建底色为 backgroundColor ,进度颜色为 chunkColor 的环形进度条。 DCircleProgress provide a circle progress widget with configurable foreground color chunkColor and background color backgroundColor. You can also set text for display status or for other purpose.

成员函数说明

◆ backgroundColor()

const QColor DCircleProgress::backgroundColor ( ) const

Background color of the circle progressbar.

环形进度条的背景色。

参见
setBackgroundColor()

◆ bottomLabel()

QLabel * DCircleProgress::bottomLabel ( )

DCircleProgress::bottomLabel

返回
返回环形进度条底部文字Label

◆ chunkColor()

const QColor DCircleProgress::chunkColor ( ) const

Foreground color of the progressbar to indicate progress.

环形进度条的前景色,用以标识进度。

参见
setChunkColor()

◆ clicked

void Dtk::Widget::DCircleProgress::clicked ( )
signal

This signal is emitted when the user clicks the DCircleProgress widget.

该信号将会在用户点击 DCircleProgress 控件时发出。

◆ lineWidth()

int DCircleProgress::lineWidth ( ) const

circle line width of the circle progressbar.

环形进度条的环形宽度。

参见
setLineWidth()

◆ mouseEntered

void Dtk::Widget::DCircleProgress::mouseEntered ( )
signal

This signal is emitted when the user's mouse pointer entered the DCircleProgress widget.

该信号将会在用户的鼠标指针移入 DCircleProgress 控件时发出。

◆ mouseLeaved

void Dtk::Widget::DCircleProgress::mouseLeaved ( )
signal

This signal is emitted when the user's mouse pointer leaved the DCircleProgress widget.

该信号将会在用户的鼠标指针离开 DCircleProgress 控件时发出。

◆ setBackgroundColor()

void DCircleProgress::setBackgroundColor ( const QColor &  color)

Set the background color of the circle progressbar.

设置环形进度条的背景色。

参见
backgroundColor()

◆ setChunkColor()

void DCircleProgress::setChunkColor ( const QColor &  color)

Set the foreground color of the progressbar to indicate progress.

设置用以标识进度环形进度条的前景色。

参见
chunkColor()

◆ setLineWidth()

void DCircleProgress::setLineWidth ( const int  width)

Set the circle line width of the circle progressbar.

设置环形进度条的环形宽度。

参见
setLineWidth()

◆ setText()

void DCircleProgress::setText ( const QString text)

Set the text display near the circle progressbar.

设置环形进度条旁边的文字。

◆ setValue()

void DCircleProgress::setValue ( int  value)

Set the progress value of the progressbar.

设置环形进度条的进度值。

Maximum value is 100, minimum value is 0. 最大值为 100 ,最小值为 0 。将根据该值和最大值(100)的比例关系绘制进度。

参见
value()

◆ text()

const QString DCircleProgress::text ( ) const

Text display near the circle progressbar.

环形进度条旁边的文字。

◆ topLabel()

QLabel * DCircleProgress::topLabel ( )

DCircleProgress::topLabel

返回
返回环形进度条顶部文字Label

◆ value()

int DCircleProgress::value ( ) const

Progress value of the progressbar.

环形进度条的进度值。

Maximum value is 100, minimum value is 0. 最大值为 100 ,最小值为 0 。

参见
setValue()

该类的文档由以下文件生成: