if(QMessageBox::Yes != QMessageBox::question(this,"删除设备","确定删除设备?",QMessageBox::Yes|QMessageBox::No)) { return; }