kdk::KProgressDialog(3)

NAME
kdk::KProgressDialog - 进度对话框，会实时显示当前进度

SYNOPSIS

#include <kprogressdialog.h>

Inherits kdk::KDialog.

  Public Slots
void cancel ()
取消进度条
void reset ()
重置进度条
void setMaximum (int maximum)
设置最大值
void setMinimum (int minimum)
设置最小值
void setRange (int minimum, int maximum)
设置范围
void setValue (int progress)
设置当前值
void setLabelText (const QString &text)
设置提示内容
void setCancelButtonText (const QString &text)
设置取消按钮内容
void setSubContent (const QString &text)
设置次级内容

  Signals
void canceled ()

  Public Member Functions
KProgressDialog (QWidget *parent=nullptr)
KProgressDialog (const QString &labelText, const QString &cancelButtonText='cancel', int minimum=0, int maximum=100, QWidget *parent=nullptr)
void setLabel (QLabel *label)
设置提示文字
void setCancelButton (QPushButton *button)
设置取消按钮
void setBar (QProgressBar *bar)
设置进度条
void setSuffix (const QString &suffix)
设置detail的后缀
void setSuffix (const QString &numerator, const QString &denominator)
void setSpeed (const float &speed)
void setShowDetail (bool flag)
设置是否显示详细信息
int minimum () const
返回最小值
int maximum () const
返回最大值
int value () const
返回当前值
QString labelText () const
返回提示内容
void setAutoReset (bool reset)
设置自动重置
bool autoReset () const
返回是否自动重置
void setAutoClose (bool close)
设置是否自动关闭对话框
bool autoClose () const
返回是否自动关闭对话框
QProgressBar * progressBar ()
获取进度条
void setBarType (const BarType &type)
void addButton (QPushButton *button)
void removeButton (QPushButton *button)
BarType myType ()
Public Member Functions inherited from kdk::KDialog
KDialog (QWidget *parent=nullptr)
void setWindowIcon (const QIcon &icon)
设置对话框图标
void setWindowIcon (const QString &iconName)
设置对话框图标
void setWindowTitle (const QString &)
设置对话框标题名称
QPushButton * maximumButton ()
获取最大化按钮
QPushButton * minimumButton ()
获取最小化按钮
QPushButton * closeButton ()
获取关闭按钮
KMenuButton * menuButton ()
获取下拉菜单按钮
QWidget * mainWidget ()
获取主内容区Widget
KWindowButtonBar * windowButtonBar ()
windowButtonBar
KIconBar * iconBar ()
iconBar

  Protected Member Functions
void changeTheme ()
Protected Member Functions inherited from kdk::KDialog
bool eventFilter (QObject *target, QEvent *event) override
void changeTheme ()
void changeIconStyle ()
QBoxLayout * mainLayout ()

Detailed Description

进度对话框，会实时显示当前进度

Examples
testprogressdialog/widget.cpp.

Author

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