.TH "kdk::KRadioButtonFrame" 3 "Version version:3.0" "LIBKYSDK-APPLICATIONS" \" -*- nroff -*- .ad l .nh .SH NAME kdk::KRadioButtonFrame .SH SYNOPSIS .br .PP .PP Inherits \fBkdk::KBaseFrame\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBKRadioButtonFrame\fP (const QString title, QWidget *parent=nullptr, \fBBorderRadiusStyle\fP style=\fBBorderRadiusStyle::None\fP)" .br .RI "创建一个带 QButtonGroup 的 Frame " .ti -1c .RI "void \fBaddButton\fP (QRadioButton *button, int id=\-1, bool addStretch=false)" .br .RI "添加一个 id = id 的 QRadioButton 到 m_buttonGroup,并放到 radioLayout 中 " .ti -1c .RI "QHBoxLayout * \fBradioHLayout\fP ()" .br .RI "layout of radiobutton " .ti -1c .RI "QButtonGroup * \fBbuttonGroup\fP ()" .br .RI "获取 m_buttonGroup " .ti -1c .RI "\fBKLabel\fP * \fBtitleLabel\fP ()" .br .RI "获取label " .ti -1c .RI "QHBoxLayout * \fBmainHLayout\fP ()" .br .RI "获取layout " .in -1c Public Member Functions inherited from \fBkdk::KBaseFrame\fP .in +1c .ti -1c .RI "\fBKBaseFrame\fP (QWidget *parent=nullptr, \fBBorderRadiusStyle\fP style=\fBAround\fP, bool heightAdaptive=false)" .br .RI "构造函数 " .ti -1c .RI "void \fBsetRadiusType\fP (\fBBorderRadiusStyle\fP style)" .br .RI "设置圆角风格 " .ti -1c .RI "bool \fBgetTabletMode\fP ()" .br .RI "获取平板模式 " .ti -1c .RI "bool \fBisContainer\fP ()" .br .RI "获取是否是一个容器frame,此时settinggroup需要设置的是其子frame的圆角 " .ti -1c .RI "void \fBsetContainer\fP (bool b=false)" .br .RI "设置该frame是否是一个容器frame,如果是同时setFrameShape(NoFrame); " .in -1c .SS "Additional Inherited Members" Public Types inherited from \fBkdk::KBaseFrame\fP .in +1c .ti -1c .RI "enum \fBBorderRadiusStyle\fP { \fBTop\fP, \fBNone\fP, \fBBottom\fP, \fBAround\fP }" .br .in -1c Signals inherited from \fBkdk::KBaseFrame\fP .in +1c .ti -1c .RI "void \fBtabletModeChanged\fP (bool b)" .br .in -1c Protected Member Functions inherited from \fBkdk::KBaseFrame\fP .in +1c .ti -1c .RI "void \fBpaintEvent\fP (QPaintEvent *e)" .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "kdk::KRadioButtonFrame::KRadioButtonFrame (const QString title, QWidget * parent = \fCnullptr\fP, \fBBorderRadiusStyle\fP style = \fC\fBBorderRadiusStyle::None\fP\fP)\fC [explicit]\fP" .PP 创建一个带 QButtonGroup 的 Frame .PP \fBParameters\fP .RS 4 \fItitle\fP text of m_settingName .br \fIstyle\fP 设置圆角(None:无圆角,Top:上圆角,Bottom:下圆角,Around:四圆角) .br \fIparent\fP .RE .PP .SH "Member Function Documentation" .PP .SS "void kdk::KRadioButtonFrame::addButton (QRadioButton * button, int id = \fC\-1\fP, bool addStretch = \fCfalse\fP)" .PP 添加一个 id = id 的 QRadioButton 到 m_buttonGroup,并放到 radioLayout 中 .PP \fBParameters\fP .RS 4 \fIbutton\fP 需要添加的 QRadioButton .br \fIid\fP 用于 buttonClicked 信号传递的参数 .br \fIaddStretch\fP 是否 addStretch .RE .PP .SS "QButtonGroup * kdk::KRadioButtonFrame::buttonGroup ()" .PP 获取 m_buttonGroup .PP \fBReturns\fP .RS 4 QButtonGroup .RE .PP .SS "QHBoxLayout * kdk::KRadioButtonFrame::mainHLayout ()" .PP 获取layout .PP \fBReturns\fP .RS 4 QHBoxLayout .RE .PP .SS "QHBoxLayout * kdk::KRadioButtonFrame::radioHLayout ()" .PP layout of radiobutton .PP \fBReturns\fP .RS 4 QHBoxLayout .RE .PP .SS "\fBKLabel\fP * kdk::KRadioButtonFrame::titleLabel ()" .PP 获取label .PP \fBReturns\fP .RS 4 QLabel .RE .PP .SH "Author" .PP Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code\&.