Qt Tips
XXDialog dialog( this ); int ret = dialog.exec(); if ( ret == QDialog::Rejected ) { キャンセル時の処理.... } else if ( ret == QDialog::Accepted ) { OK時の処理... }