int r = QMessageBox::warning(this, tr("QMessageBox"),
tr("This is a QMessageBox.\n"
"Thank you!"),
QMessageBox::Yes | QMessageBox::No
| QMessageBox::Cancel);
if (r == QMessageBox::Yes) {
printf("***Yes***");
} else if (r == QMessageBox::Cancel) {
printf("***Cancel***");
}
QMessaggeBox::warning(parent, title, message, buttons)