/********************************************************************** * @file FITKWidgetHBox.h * @brief 水平布局组件界面 * @author BaGuijun (baguijun@163.com) * @date 2024-08-22 *********************************************************************/ #ifndef _FITKWidgetHBox_H #define _FITKWidgetHBox_H #include "FITKEasyParamAPI.h" #include namespace Ui { class FITKWidgetHBox; } class QRadioButton; namespace Core { /** * @brief 水平布局组件界面 * @author BaGuijun (baguijun@163.com) * @date 2024-08-22 */ class FITKEasyParamAPI FITKWidgetHBox :public QWidget { Q_OBJECT; public: FITKWidgetHBox(QList widgetList, QWidget* parent = nullptr); /** * @brief 析构函数 * @author BaGuijun (baguijun@163.com) * @date 2024-08-22 */ ~FITKWidgetHBox(); /** * @brief 设置子项界面不可显示 * @param[i] enable 是否显示 * @param[i] isFirst 首项是否跳过 * @author BaGuijun (baguijun@163.com) * @date 2024-08-22 */ void setSubWidgetEnable(bool enable, bool isFirst = true); private: /** * @brief ui对象 * @author BaGuijun (baguijun@163.com) * @date 2024-08-22 */ Ui::FITKWidgetHBox* _ui = nullptr; QList _subWidgets = {}; }; } #endif // !_FITKWidgetHBox_H