问题:难以居中
问题:存在点击图标困难的问题
QPixmap pixmap=copy_label->grab(copy_label->rect());//复制其他 QLabel 上的图标
QPushButton *button_temp=new QPushButton();
button_temp->setIcon(QIcon(pixmap)); //放到 button 上
button_temp ->setStyleSheet("background-color: #171E2B;border: none;"); 设置颜色,隐去边框
current_task_tableWidget->setCellWidget(current_task_tableWidget->rowCount()-1,3,button_temp);
//加入 QButtonGroup 中方便管理
operation_buttons->addButton(button_temp,operation_buttons->buttons().size());
欢迎讨论。