kdk::KRadioButtonFrame(3)

NAME
kdk::KRadioButtonFrame

SYNOPSIS

Inherits kdk::KBaseFrame.

  Public Member Functions

KRadioButtonFrame (const QString title, QWidget *parent=nullptr, BorderRadiusStyle style=BorderRadiusStyle::None)
创建一个带 QButtonGroup 的 Frame
void addButton (QRadioButton *button, int id=-1, bool addStretch=false)
添加一个 id = id 的 QRadioButton 到 m_buttonGroup，并放到 radioLayout 中
QHBoxLayout * radioHLayout ()
layout of radiobutton
QButtonGroup * buttonGroup ()
获取 m_buttonGroup
KLabel * titleLabel ()
获取label
QHBoxLayout * mainHLayout ()
获取layout

Public Member Functions inherited from kdk::KBaseFrame
KBaseFrame (QWidget *parent=nullptr, BorderRadiusStyle style=Around, bool heightAdaptive=false)
构造函数
void setRadiusType (BorderRadiusStyle style)
设置圆角风格
bool getTabletMode ()
获取平板模式
bool isContainer ()
获取是否是一个容器frame，此时settinggroup需要设置的是其子frame的圆角
void setContainer (bool b=false)
设置该frame是否是一个容器frame,如果是同时setFrameShape(NoFrame)；

  Additional Inherited Members

Public Types inherited from kdk::KBaseFrame
enum BorderRadiusStyle { Top, None, Bottom, Around }

Signals inherited from kdk::KBaseFrame
void tabletModeChanged (bool b)

Protected Member Functions inherited from kdk::KBaseFrame
void paintEvent (QPaintEvent *e)

Constructor & Destructor Documentation

  kdk::KRadioButtonFrame::KRadioButtonFrame (const QString title, QWidget * parent = nullptr, BorderRadiusStyle style = BorderRadiusStyle::None) [explicit]

创建一个带 QButtonGroup 的 Frame

Parameters
    title text of m_settingName
    style 设置圆角（None:无圆角,Top:上圆角,Bottom:下圆角,Around:四圆角）
    parent

Member Function Documentation

  void kdk::KRadioButtonFrame::addButton (QRadioButton * button, int id = -1, bool addStretch = false)

添加一个 id = id 的 QRadioButton 到 m_buttonGroup，并放到 radioLayout 中

Parameters
    button 需要添加的 QRadioButton
    id 用于 buttonClicked 信号传递的参数
    addStretch 是否 addStretch

  QButtonGroup * kdk::KRadioButtonFrame::buttonGroup ()

获取 m_buttonGroup

Returns
    QButtonGroup

  QHBoxLayout * kdk::KRadioButtonFrame::mainHLayout ()

获取layout

Returns
    QHBoxLayout

  QHBoxLayout * kdk::KRadioButtonFrame::radioHLayout ()

layout of radiobutton

Returns
    QHBoxLayout

  KLabel * kdk::KRadioButtonFrame::titleLabel ()

获取label

Returns
    QLabel

Author

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