kdk::KProgressBar(3)

NAME
kdk::KProgressBar - 进度条，支持三种状态显示

SYNOPSIS

#include <kprogressbar.h>

Inherits QProgressBar.

  Public Member Functions
KProgressBar (QWidget *parent)
ProgressBarState state ()
获取状态
void setState (ProgressBarState state)
设置状态
QString text () const override
获取文本
void setOrientation (Qt::Orientation)
设置方向
void setBodyWidth (int width)
设置进度条宽度
void setGradationColor (QColor color1, QColor color2)
设置首尾位置的渐变颜色
void setBackgroundColor (QColor color)
设置背景色
void setFillColor (QColor color)
设置填充色
void setGradation (bool flag)
是否启用自定义渐变色
bool gradation ()
获取是否启用自定义渐变色
void setAnimation (bool flag)
是否启用动画
bool animation ()
获取是否启用动画

  Protected Member Functions
void paintEvent (QPaintEvent *event) override
QSize sizeHint () const

Detailed Description

进度条，支持三种状态显示

Examples
testprogressbar/widget.h.

Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.