最終更新:2013-07-14 (日) 17:20:12 (3931d)  

QMessageBox
Top / QMessageBox

短いメッセージ、アイコン、いくつかのボタンを持つモーダルダイアログ

プロパティベース

  • QMessageBox msgBox;
     msgBox.setText("The document has been modified.");
     msgBox.exec();

スタティック関数

  • information()
  • question()
  • warning()
  • critical()
     int ret = QMessageBox::warning(this, tr("My Application"),
                                    tr("The document has been modified.\n"
                                       "Do you want to save your changes?"),
                                    QMessageBox::Save | QMessageBox::Discard
                                    | QMessageBox::Cancel,
                                    QMessageBox::Save);