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

kdk::KButtonBox - 提供了一个按钮类容器

#include <kbuttonbox.h>

Inherits QWidget.


void buttonClicked (QAbstractButton *)
void buttonPressed (QAbstractButton *)
void buttonReleased (QAbstractButton *)
void buttonToggled (QAbstractButton *, bool)


KButtonBox (QWidget *parent=nullptr)
Qt::Orientation orientation ()
获取KButtonBox的布局类型 void setOrientation (Qt::Orientation orientation)
设置KButtonBox的布局类型,包括水平类型和垂直类型 void addButton (KPushButton *button, int i=-1)
添加按钮 void removeButton (KPushButton *button)
删除按钮 void removeButton (int i)
按id删除指定按钮 void setButtonList (const QList< KPushButton * > &list)
以列表形式向KButtonBox中添加按钮 QList< KPushButton * > buttonList ()
获取KButtonBox中的按钮列表 void setBorderRadius (int radius)
设置KButtonBox首尾部分按钮的圆角 int borderRadius ()
获取KButtonBox首尾部分按钮的圆角 void setId (KPushButton *button, int id)
设置按钮id int id (KPushButton *button)
获取按钮id KPushButton * checkedButton ()
返回已选中的按钮 KPushButton * button (int id)
通过按钮id获取按钮 int checkedId ()
返回已选中按钮的id void setExclusive (bool)
设置KButtonBox按钮间是否互斥 bool exclusive ()
返回KButtonBox按钮间是否互斥 void setCheckable (bool flag)
设置KButtonBox中的按钮是否可选中 bool isCheckable ()
返回KButtonBox中的按钮是否可选中 void setShadow (bool flag)
设置是否启动阴影效果 bool shadow ()
获取是否启用阴影效果

提供了一个按钮类容器

Since

2.0.2.1

添加按钮

Parameters

button

获取KButtonBox首尾部分按钮的圆角

Returns

KPushButton * kdk::KButtonBox::button (int id)

通过按钮id获取按钮

Parameters

id

Returns

获取KButtonBox中的按钮列表

Returns

KPushButton * kdk::KButtonBox::checkedButton ()

返回已选中的按钮

Returns

返回已选中按钮的id

Returns

返回KButtonBox按钮间是否互斥

Returns

获取按钮id

Parameters

button

Returns

返回KButtonBox中的按钮是否可选中

Returns

获取KButtonBox的布局类型

Returns

按id删除指定按钮

Parameters

i

删除按钮

Parameters

button

设置KButtonBox首尾部分按钮的圆角

Parameters

radius

以列表形式向KButtonBox中添加按钮

Parameters

list
checkable

设置按钮id

Parameters

button
id

设置KButtonBox的布局类型,包括水平类型和垂直类型

Parameters

orientation

设置是否启动阴影效果

Parameters

flag

Since

2.4.1.0

获取是否启用阴影效果

Returns

bool

Since

2.4.1.0

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

Version version:3.0 LIBKYSDK-APPLICATIONS