QMessageBox 静态函数API
information | warning | critical
int ret = QMessageBox::information(this, "添加好友",
QString("%1 want to add you as friend ?").arg(caName),
QMessageBox::Yes,
QMessageBox::No);
在项目中使用 information 消息对话框,直接调用 QMessageBox 类中的 information() 静态成员方法即可。函数返回值为单击按钮的StandardButtons值,如QMessageBox::Yes。