//原型
[static] int QMessageBox::information(QWidget *parent, const QString &title, const QString &text, int button0, int button1 = 0, int button2 = 0)
//用法示例
#include <QMessageBox>
int TextA1::OnShowClicked(bool checked)
{
QString pbtn_name;
int k;
pbtn_name = ui.btnShow->metaObject()->className(); //获取按钮对象的名字
k = QMessageBox::information(this, "title", "hello!" + pbtn_name, QMessageBox::Ok, QMessageBox::Cancel, QMessageBox::Yes); //ok,cancle,yes三个按钮
if (k == QMessageBox::Cancel) //判断返回的按钮参数
QMessageBox::information(this, "pramater return", "Cancle!");
else if (k