table of contents
| kdk::KSwitchButton(3) | Library Functions Manual | kdk::KSwitchButton(3) |
NAME¶
kdk::KSwitchButton - 指示打开/关闭两种状态
SYNOPSIS¶
#include <kswitchbutton.h>
Inherits QPushButton.
Signals¶
void stateChanged (bool)
当选中状态发生变化时,发出此信号
Public Member Functions¶
KSwitchButton (QWidget *parent=0)
void setCheckable (bool)
设置是否可选中 bool
isCheckable () const
返回是否可选中 bool isChecked
() const
返回是否选中 void setChecked (bool)
设置是否选中 void setTranslucent
(bool flag)
设置是否启用半透明效果
bool isTranslucent ()
获取是否启用半透明效果
Protected Member Functions¶
void paintEvent (QPaintEvent *event) override
void resizeEvent (QResizeEvent *event) override
QSize sizeHint () const
Detailed Description¶
指示打开/关闭两种状态
Since
Author¶
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.
| Version version:3.0 | LIBKYSDK-APPLICATIONS |