diff --git a/CFDStruct/CUIProperty/CUIComponentRadioGroup.cpp b/CFDStruct/CUIProperty/CUIComponentRadioGroup.cpp index 98608e6..4bb52da 100644 --- a/CFDStruct/CUIProperty/CUIComponentRadioGroup.cpp +++ b/CFDStruct/CUIProperty/CUIComponentRadioGroup.cpp @@ -33,6 +33,12 @@ void CUIComponentRadioGroup::iniUI(QVector &subCUI) mainLayout->addWidget(m_Component); } this->setLayout(mainLayout); + + QVariant vOrigin = m_conf->getPropertyOriginValue("value_origin"); + int *ptr = qvariant_cast(vOrigin); + if (ptr != nullptr) { + m_ButtonGroup->button(*ptr)->setChecked(true); + } } void CUIComponentRadioGroup::iniUI_GroupBox()