switch(QMessageBox::question(this, tr("Сохранить"), tr("Сохранить изменения?"), tr("&Да"), tr("&Нет"), QString::null, 0, 1)) { case 0: //code case 1: //code }
if (QMessageBox::question(this, tr("Overwrite File? -- Application Name"), tr("A file called %1 already exists." "Do you want to overwrite it?"), tr("&Да"), tr("&Отмена"), QString::null, 0, 1 ) ) return false;