1/**
2 * int output = QMessageBox::icon(this, tr("Title"), tr("content"),
3 * QMessageBox::button, QMessageBox::defaultButton);
4 */
5//for example :
6int ret = QMessageBox::warning(this, tr("My Application"),
7 tr("The document has been modified.\n"
8 "Do you want to save your changes?"),
9 QMessageBox::Save | QMessageBox::Discard
10 | QMessageBox::Cancel,
11 QMessageBox::Save);