/** * 单选框组件 */ #ifndef CUIRADIOCOMPONENT_H #define CUIRADIOCOMPONENT_H #include #include class CUIConfig; class CUI; class QLabel; class QHBoxLayout; class QGroupBox; class QWidget; class QButtonGroup; class CUIRadioComponent : public CUIComponentBaseContainerWidget { Q_OBJECT public: /** * @brief CUIRadioComponent构造函数 * @param conf配置信息 * @param subCUI子组件 * @param parent父组件 */ explicit CUIRadioComponent(CUIConfig* conf, QVector &subCUI, QWidget *parent = nullptr); private: /** * @brief iniUI渲染ui * @param subCUI子组件 */ void iniUI(QVector &subCUI); /** * @brief iniUI_GroupBox渲染groupbox类型 */ void iniUI_GroupBox(); /** * @brief iniUI_Component渲染component类型 */ void iniUI_Component(); CUIConfig* conf; QLabel* m_label; QLayout* m_layout; QGroupBox* m_GroupBox; QWidget* m_Component; QButtonGroup* m_ButtonGroup; signals: }; #endif // CUIRADIOCOMPONENT_H