kdk::KToolButton(3) Library Functions Manual kdk::KToolButton(3)

kdk::KToolButton - 提供了一个快速访问按钮,暂不支持显示文本

#include <ktoolbutton.h>

Inherits QToolButton.


void checkedChanged (bool checked)


KToolButton (QWidget *parent)
KToolButtonType type ()
返回类型 void setType (KToolButtonType type)
设置类型 void setIcon (const QIcon &icon)
设置Icon void setLoading (bool flag)
设置正在加载状态,仅不带箭头的toolbuttuon支持该状态 bool isLoading ()
返回是否正在加载 QIcon icon ()
获取Icon void setArrow (bool flag)
设置是否显示向下箭头,默认不显示 bool hasArrow () const
返回是否显示箭头 void setIconColor (bool flag, QColor color)
设置图标颜色 void setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight)
setBorderRadius void setBackgroundColorEnabled (bool flag)
setBackgroundColorEnabled bool backgroundColorEnabled ()
backgroundColorEnabled


bool eventFilter (QObject *watched, QEvent *event)
QSize sizeHint () const
void paintEvent (QPaintEvent *event)

提供了一个快速访问按钮,暂不支持显示文本

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

Version version:3.0 LIBKYSDK-APPLICATIONS