Scroll to navigation

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

NAME

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

SYNOPSIS

#include <ktoolbutton.h>

Inherits QToolButton.

Signals


void checkedChanged (bool checked)

Public Member Functions


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

Protected Member Functions


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

Detailed Description

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

Author

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

Version version:3.0 LIBKYSDK-APPLICATIONS