void Home::on_toolButton_setting_clicked()
{
set_head_unchecked(qobject_cast<QToolButton *>(sender()));
}

void Home::set_head_unchecked(QToolButton *tool_button)
{
ui->toolButton_home->setChecked(false);
ui->toolButton_setting->setChecked(false);
ui->toolButton_warning->setChecked(false);
ui->toolButton_net_info->setChecked(false);
ui->toolButton_play_back->setChecked(false);
ui->toolButton_play_video->setChecked(false);
ui->toolButton_fc_realtime->setChecked(false);

tool_button->setChecked(true);

if(tool_button->objectName()=="toolButton_home")
{
     home_page_video->show();
}
else
{
     home_page_video->hide();
}

}

09-20 16:09