switch( QMessageBox::question( this, tr("Application Name"), tr("An information message."), QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel, QMessageBox::Cancel ) ) { case QMessageBox::Yes: ... break; case QMessageBox::No: ... break; case QMessageBox::Cancel: ... break; default: ... break; }
|