QSharedPointer<QButtonGroup> buttonGroup = QSharedPointer<QButtonGroup>(new QButtonGroup());
buttonGroup->setExclusive(true);
ui->moveButton->setCheckable(true);
ui->rotateButton->setCheckable(true);
ui->scaleButton->setCheckable(true);
buttonGroup->addButton(ui->moveButton);
buttonGroup->addButton(ui->rotateButton);
buttonGroup->addButton(ui->scaleButton);
07-23
4450
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-11
913
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)