引入QGroupBoxui
groupBoxRad = new QButtonGroup(this);
groupBoxRad->addButton(ui->radioButton);
groupBoxRad->addButton(ui->radioButton_2);
groupBoxRad->addButton(ui->radioButton_3);
groupBoxRad->addButton(ui->radioButton_4);
groupBoxRad->addButton(ui->radioButton_5);this