#include "CUIButtonBox.h" #include #include #include #include #include #include CUIButtonBox::CUIButtonBox(CUIConfig* conf, QVector &subCUI, QWidget *parent) : CUIGroupBox(conf,subCUI,parent) { // iniUI(subCUI); } //void CUIButtonBox::iniUI(QVector &subCUI) //{ // buttongroup = new QButtonGroup(); // layout = new QVBoxLayout; // qDebug()<<"buttonbox iniUI"; // this->setLayout(layout); // for(auto config:conf->sub){ // CUI* ui = new CUI(config); // qDebug()<<"before subCUI push_back"; // subCUI.push_back(ui); // layout->addWidget(ui->getUI()); // qDebug()<<"before buttongroup add"; // QAbstractButton* button = qobject_cast(ui->getUI()); // if(button) // buttongroup->addButton(button); // } //}