table of contents
| kdk::KColorButton(3) | Library Functions Manual | kdk::KColorButton(3) |
NAME¶
kdk::KColorButton - 提供用于设置颜色和样式的按钮,以适用于不同的场景。
SYNOPSIS¶
#include <kcolorbutton.h>
Inherits QPushButton.
Public Types¶
enum ButtonType { Circle, RoundedRect,
CheckedRect }
KColorButton提供三种不同的样式
Public Member Functions¶
KColorButton (QWidget *parent=nullptr)
void setBackgroundColor (QColor color)
设置colorButton背景色 QColor
backgroundColor ()
返回colorButton背景色 void
setBorderRadius (int radious)
设置圆角(RoundedRect,CheckedRect类型生效)
int borderRadius ()
返回圆角 void setButtonType
(KColorButton::ButtonType type)
设置colorButton类型 KColorButton::ButtonType
buttonType ()
返回colorButton类型
Protected Member Functions¶
void paintEvent (QPaintEvent *) override
QSize sizeHint () const override
Detailed Description¶
提供用于设置颜色和样式的按钮,以适用于不同的场景。
Since
Member Function Documentation¶
QColor kdk::KColorButton::backgroundColor ()¶
返回colorButton背景色
Returns
int kdk::KColorButton::borderRadius ()¶
返回圆角
Returns
KColorButton::ButtonType kdk::KColorButton::buttonType ()¶
返回colorButton类型
Returns
void kdk::KColorButton::setBackgroundColor (QColor color)¶
设置colorButton背景色
Parameters
void kdk::KColorButton::setBorderRadius (int radious)¶
设置圆角(RoundedRect,CheckedRect类型生效)
Parameters
void kdk::KColorButton::setButtonType (KColorButton::ButtonType type)¶
设置colorButton类型
Parameters
Author¶
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.
| Version version:3.0 | LIBKYSDK-APPLICATIONS |