int ret = QMessageBox::information(nullptr,"提示","取消","确认"); if(0 == ret) //取消 { } else if(1 == ret) //确认 { }
QMessageBox::information(nullptr,"提示","确认");