<class name="QMessageBox" doc="/**
&lt;p&gt;The &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; class provides a modal dialog with a short message, an icon, and buttons laid out depending on the current style.&lt;/p&gt;
&lt;p&gt;Message boxes are used to provide informative messages and to ask simple questions.&lt;/p&gt;
&lt;a name=&quot;basic-usage&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Basic Usage&lt;/h3&gt;
&lt;p&gt;The easiest way to pop up a message box in Qt is to call one of the static functions QMessageBox::information(), QMessageBox::question(), QMessageBox::critical(), and QMessageBox::warning(). For example:&lt;/p&gt;
&lt;pre&gt;    int ret = QMessageBox::warning(this, tr(&amp;quot;My Application&amp;quot;),
                      tr(&amp;quot;The document has been modified.\n&amp;quot;
                         &amp;quot;Do you want to save your changes?&amp;quot;),
                      QMessageBox::Save | QMessageBox::Discard
                      | QMessageBox::Cancel,
                      QMessageBox::Save);&lt;/pre&gt;
&lt;p&gt;Buttons are specified by combining StandardButtons using the bitwise OR operator. The order of the buttons on screen is platform-dependent. For example, on Windows, &lt;b&gt;Save&lt;/b&gt; is displayed to the left of &lt;b&gt;Cancel&lt;/b&gt;, whereas on Mac OS, the order is reversed.&lt;/p&gt;
&lt;p&gt;The text part of all message box messages can be either rich text or plain text. With certain strings that contain XML meta characters, the auto-rich text detection may fail, interpreting plain text incorrectly as rich text. In these rare cases, use Qt::convertFromPlainText() to convert your plain text string to a visually equivalent rich text string or set the text format explicitly with &lt;a href=&quot;QMessageBox.html#setTextFormat(com.trolltech.qt.core.Qt.TextFormat)&quot;&gt;&lt;tt&gt;setTextFormat&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that the Microsoft Windows User Interface Guidelines recommend using the application name as the window's title.&lt;/p&gt;
&lt;p&gt;The Standard Dialogs&lt;/tt&gt; example shows how to use &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; as well as other built-in Qt dialogs.&lt;/p&gt;
&lt;a name=&quot;severity-levels&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Severity Levels&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; supports four severity levels, indicated by an icon:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qmessagebox-quest.png&quot; /&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QMessageBox.html#Icon-enum&quot;&gt;Question&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;For message boxes that ask a question as part of normal operation. Some style guides recommend using Information for this purpose.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qmessagebox-info.png&quot; /&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QMessageBox.html#Icon-enum&quot;&gt;Information&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;For message boxes that are part of normal operation.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qmessagebox-warn.png&quot; /&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QMessageBox.html#Icon-enum&quot;&gt;Warning&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;For message boxes that tell the user about unusual errors.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qmessagebox-crit.png&quot; /&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QMessageBox.html#Icon-enum&quot;&gt;Critical&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;For message boxes that tell the user about critical errors.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;a name=&quot;advanced-usage&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Advanced Usage&lt;/h3&gt;
&lt;p&gt;If the convenience static functions, such as QMessageBox::information() and QMessageBox::warning(), are not flexible enough for your needs, you can instantiate a &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; on the stack. You can then use &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt; to add buttons with standard or arbitrary text.&lt;/p&gt;
&lt;p&gt;When using an instance of &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; with standard buttons, you can test the return value of &lt;a href=&quot;QDialog.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; to determine which button was clicked. For example,&lt;/p&gt;
&lt;pre&gt;    QMessageBox msgBox;
    msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
    switch (msgBox.exec()) {
    case QMessageBox::Yes:
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; yes was clicked
        break;
    case QMessageBox::No:
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; no was clicked
        break;
    default:
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; should never be reached
        break;
    }&lt;/pre&gt;
&lt;p&gt;When using an instance of &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; with custom buttons, you can test the value of &lt;a href=&quot;QMessageBox.html#clickedButton()&quot;&gt;&lt;tt&gt;clickedButton&lt;/tt&gt;&lt;/a&gt; after calling &lt;a href=&quot;QDialog.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;. For example,&lt;/p&gt;
&lt;pre&gt;    QMessageBox msgBox;
    QPushButton *connectButton = msgBox.addButton(tr(&amp;quot;Connect&amp;quot;), QMessageBox::ActionRole);
    QPushButton *abortButton = msgBox.addButton(QMessageBox::Abort);

    msgBox.exec();

    if (msgBox.clickedButton() == connectButton) {
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; connect
    } else if (msgBox.clickedButton() == abortButton) {
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; abort
    }&lt;/pre&gt;
&lt;p&gt;In the example above, the &lt;b&gt;Connect&lt;/b&gt; button is created using the &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt; overload that takes a text and a &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ButtonRole&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ButtonRole&lt;/tt&gt;&lt;/a&gt; is used by &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; to determine the ordering of the buttons on screen (which varies according to the platform).&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QMessageBox.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#icon()&quot;&gt;&lt;tt&gt;icon&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMessageBox.html#iconPixmap()&quot;&gt;&lt;tt&gt;iconPixmap&lt;/tt&gt;&lt;/a&gt; functions provide access to the current text and pixmap of the message box. The &lt;a href=&quot;QMessageBox.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#setIcon(com.trolltech.qt.gui.QMessageBox.Icon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMessageBox.html#setIconPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setIconPixmap&lt;/tt&gt;&lt;/a&gt; let you change it. The difference between &lt;a href=&quot;QMessageBox.html#setIcon(com.trolltech.qt.gui.QMessageBox.Icon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMessageBox.html#setIconPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setIconPixmap&lt;/tt&gt;&lt;/a&gt; is that the former accepts a QMessageBox::Icon and can be used to set standard icons, whereas the latter accepts a &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; and can be used to set custom icons.&lt;/p&gt;
&lt;p&gt;setButtonText() and buttonText() provide access to the buttons.&lt;/p&gt;
&lt;a name=&quot;default-and-escape-keys&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Default and Escape Keys&lt;/h3&gt;
&lt;p&gt;The default button (i.e&amp;#x2e;, the button that is activated when the user presses &lt;b&gt;Enter&lt;/b&gt;) can be specified using &lt;a href=&quot;QMessageBox.html#setDefaultButton(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;setDefaultButton&lt;/tt&gt;&lt;/a&gt;. If none is specified, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; will try to find one automatically based on the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ButtonRole&lt;/tt&gt;&lt;/a&gt;s of the buttons in the dialog.&lt;/p&gt;
&lt;p&gt;Similarly, the escape button (the button that is activated when the user presses &lt;b&gt;Esc&lt;/b&gt;) is specified using &lt;a href=&quot;QMessageBox.html#setEscapeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setEscapeButton&lt;/tt&gt;&lt;/a&gt;. If no escape button is specified, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; attempts to automatically detect an escape button as follows:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;If there is only one button, it is made the escape button.&lt;/li&gt;
&lt;li&gt;If there is a &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;Cancel&lt;/tt&gt;&lt;/a&gt; button, it is made the escape button.&lt;/li&gt;
&lt;li&gt;On Mac OS X only, if there is exactly one button with the role QMessageBox::RejectRole, it is made the escape button.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;When an escape button could not be automatically detected, pressing &lt;b&gt;Esc&lt;/b&gt; has no effect.&lt;/p&gt;

@see &lt;a href=&quot;QDialogButtonBox.html&quot;&gt;&lt;tt&gt;QDialogButtonBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/guibooks.html#fowler&quot;&gt;GUI Design Handbook: Message Box&lt;/tt&gt;&lt;/a&gt;
@see Standard Dialogs Example&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-application.html&quot;&gt;Application Example&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void accepted()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been accepted either by the user or by calling &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Accepted argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QMessageBox.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void finished(int result)" doc="/**
&lt;p&gt;This signal is emitted when the dialog's &lt;tt&gt;result&lt;/tt&gt; code has been set, either by the user or by calling &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int result)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QMessageBox.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void rejected()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been rejected either by the user or by calling &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Rejected argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QMessageBox.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QMessageBox(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a message box with no text and no buttons.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the message box becomes an application-global modal dialog box. If &lt;tt&gt;parent&lt;/tt&gt; is a widget, the message box becomes modal relative to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;parent&lt;/tt&gt; argument is passed to the &lt;a href=&quot;QDialog.html#QDialog(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; constructor.&lt;/p&gt;
 */"/>
    <method name="public QMessageBox()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon icon, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons, com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags f)" doc="/**
&lt;p&gt;Constructs a message box with the given &lt;tt&gt;icon&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, and standard &lt;tt&gt;buttons&lt;/tt&gt;. (Buttons can also be added at any time using &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the message box becomes an application-global modal dialog box. If &lt;tt&gt;parent&lt;/tt&gt; is a widget, the message box becomes modal relative to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;parent&lt;/tt&gt; and &lt;tt&gt;f&lt;/tt&gt; arguments are passed to the &lt;a href=&quot;QDialog.html#QDialog(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; constructor.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowTitle(java.lang.String)&quot;&gt;&lt;tt&gt;setWindowTitle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setIcon(com.trolltech.qt.gui.QMessageBox.Icon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setStandardButtons(com.trolltech.qt.gui.QMessageBox.StandardButtons)&quot;&gt;&lt;tt&gt;setStandardButtons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon icon, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;icon&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, &lt;tt&gt;parent&lt;/tt&gt;, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint). */"/>
    <method name="public QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon icon, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;icon&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, 0, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint). */"/>
    <method name="public QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon icon, java.lang.String title, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;icon&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, NoButton, 0, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint). */"/>
    <method name="public final com.trolltech.qt.gui.QPushButton addButton(java.lang.String text, com.trolltech.qt.gui.QMessageBox.ButtonRole role)" doc="/**
&lt;p&gt;Creates a button with the given &lt;tt&gt;text&lt;/tt&gt;, adds it to the message box for the specified &lt;tt&gt;role&lt;/tt&gt;, and returns it.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPushButton addButton(com.trolltech.qt.gui.QMessageBox.StandardButton button)" doc="/**
&lt;p&gt;Adds a standard &lt;tt&gt;button&lt;/tt&gt; to the message box if it is valid to do so, and returns the push button.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setStandardButtons(com.trolltech.qt.gui.QMessageBox.StandardButtons)&quot;&gt;&lt;tt&gt;setStandardButtons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addButton(com.trolltech.qt.gui.QAbstractButton button, com.trolltech.qt.gui.QMessageBox.ButtonRole role)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;button&lt;/tt&gt; to the message box with the specified &lt;tt&gt;role&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#removeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;removeButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#button(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setStandardButtons(com.trolltech.qt.gui.QMessageBox.StandardButtons)&quot;&gt;&lt;tt&gt;setStandardButtons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractButton button(com.trolltech.qt.gui.QMessageBox.StandardButton which)" doc="/**
&lt;p&gt;Returns a pointer corresponding to the standard button &lt;tt&gt;which&lt;/tt&gt;, or 0 if the standard button doesn't exist in this message box.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#standardButtons()&quot;&gt;&lt;tt&gt;standardButtons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#standardButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;standardButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractButton clickedButton()" doc="/**
&lt;p&gt;Returns the button that was clicked by the user, or 0 if the user hit the &lt;b&gt;Esc&lt;/b&gt; key and no &lt;a href=&quot;QMessageBox.html#setEscapeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;escape button&lt;/tt&gt;&lt;/a&gt; was set.&lt;/p&gt;
&lt;p&gt;If &lt;a href=&quot;QDialog.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; hasn't been called yet, returns 0.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QMessageBox messageBox(this);
    QAbstractButton *disconnectButton =
          messageBox.addButton(tr(&amp;quot;Disconnect&amp;quot;), QMessageBox::ActionRole);
    ...
    messageBox.exec();
    if (messageBox.clickedButton() == disconnectButton) {
        ...
    }&lt;/pre&gt;

@see &lt;a href=&quot;QMessageBox.html#standardButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;standardButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#button(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPushButton defaultButton()" doc="/**
&lt;p&gt;Returns the button that should be the message box's default button&lt;/tt&gt;. Returns 0 if no default button was set.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setDefaultButton(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;setDefaultButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPushButton::setDefault&lt;/tt&gt; */"/>
    <method name="public final java.lang.String detailedText()" doc="/**
&lt;p&gt;Returns the text to be displayed in the details area..&lt;/p&gt;
&lt;p&gt;The text will be interpreted as a plain text. The default value of this property is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setDetailedText(java.lang.String)&quot;&gt;&lt;tt&gt;setDetailedText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractButton escapeButton()" doc="/**
&lt;p&gt;Returns the button that is activated when escape is pressed.&lt;/p&gt;
&lt;p&gt;By default, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; attempts to automatically detect an escape button as follows:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;If there is only one button, it is made the escape button.&lt;/li&gt;
&lt;li&gt;If there is a &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;Cancel&lt;/tt&gt;&lt;/a&gt; button, it is made the escape button.&lt;/li&gt;
&lt;li&gt;On Mac OS X only, if there is exactly one button with the role QMessageBox::RejectRole, it is made the escape button.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;When an escape button could not be automatically detected, pressing &lt;b&gt;Esc&lt;/b&gt; has no effect.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setEscapeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setEscapeButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMessageBox.Icon icon()" doc="/**
&lt;p&gt;Returns the message box's icon.&lt;/p&gt;
&lt;p&gt;The icon of the message box can be one of the following predefined icons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;QMessageBox::NoIcon&lt;/li&gt;
&lt;li&gt;QMessageBox::Question&lt;/li&gt;
&lt;li&gt;QMessageBox::Information&lt;/li&gt;
&lt;li&gt;QMessageBox::Warning&lt;/li&gt;
&lt;li&gt;QMessageBox::Critical&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The actual pixmap used for displaying the icon depends on the current GUI style&lt;/tt&gt;. You can also set a custom pixmap icon using the &lt;tt&gt;QMessageBox::iconPixmap&lt;/tt&gt; property. The default icon is QMessageBox::NoIcon.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setIcon(com.trolltech.qt.gui.QMessageBox.Icon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#iconPixmap()&quot;&gt;&lt;tt&gt;iconPixmap&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap iconPixmap()" doc="/**
&lt;p&gt;Returns the current icon.&lt;/p&gt;
&lt;p&gt;The icon currently used by the message box. Note that it's often hard to draw one pixmap that looks appropriate in all GUI styles; you may want to supply a different pixmap for each platform.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setIconPixmap(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setIconPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#icon()&quot;&gt;icon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String informativeText()" doc="/**
&lt;p&gt;Returns the informative text that provides a fuller description for the message.&lt;/p&gt;
&lt;p&gt;Infromative text can be used to expand upon the &lt;a href=&quot;QMessageBox.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; to give more information to the user. On the Mac, this text appears in small system font below the &lt;a href=&quot;QMessageBox.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;. On other platforms, it is simply appended to the existing text.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setInformativeText(java.lang.String)&quot;&gt;&lt;tt&gt;setInformativeText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeButton(com.trolltech.qt.gui.QAbstractButton button)" doc="/**
&lt;p&gt;Removes &lt;tt&gt;button&lt;/tt&gt; from the button box without deleting it.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setStandardButtons(com.trolltech.qt.gui.QMessageBox.StandardButtons)&quot;&gt;&lt;tt&gt;setStandardButtons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDefaultButton(com.trolltech.qt.gui.QPushButton button)" doc="/**
&lt;p&gt;Sets the message box's default button&lt;/tt&gt; to &lt;tt&gt;button&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPushButton::setDefault&lt;/tt&gt; */"/>
    <method name="public final void setDefaultButton(com.trolltech.qt.gui.QMessageBox.StandardButton button)" doc="/**
&lt;p&gt;Sets the message box's default button&lt;/tt&gt; to &lt;tt&gt;button&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#defaultButton()&quot;&gt;&lt;tt&gt;defaultButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPushButton::setDefault&lt;/tt&gt; */"/>
    <method name="public final void setDetailedText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the text to be displayed in the details area. to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The text will be interpreted as a plain text. The default value of this property is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#detailedText()&quot;&gt;&lt;tt&gt;detailedText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setEscapeButton(com.trolltech.qt.gui.QMessageBox.StandardButton button)" doc="/**
&lt;p&gt;Sets the buttons that gets activated when the &lt;b&gt;Escape&lt;/b&gt; key is pressed to &lt;tt&gt;button&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#clickedButton()&quot;&gt;&lt;tt&gt;clickedButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setEscapeButton(com.trolltech.qt.gui.QAbstractButton button)" doc="/**
&lt;p&gt;Sets the button that gets activated when the &lt;b&gt;Escape&lt;/b&gt; key is pressed to &lt;tt&gt;button&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#escapeButton()&quot;&gt;&lt;tt&gt;escapeButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#clickedButton()&quot;&gt;&lt;tt&gt;clickedButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIcon(com.trolltech.qt.gui.QMessageBox.Icon arg__1)" doc="/**
&lt;p&gt;Sets the message box's icon to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The icon of the message box can be one of the following predefined icons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;QMessageBox::NoIcon&lt;/li&gt;
&lt;li&gt;QMessageBox::Question&lt;/li&gt;
&lt;li&gt;QMessageBox::Information&lt;/li&gt;
&lt;li&gt;QMessageBox::Warning&lt;/li&gt;
&lt;li&gt;QMessageBox::Critical&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The actual pixmap used for displaying the icon depends on the current GUI style&lt;/tt&gt;. You can also set a custom pixmap icon using the &lt;tt&gt;QMessageBox::iconPixmap&lt;/tt&gt; property. The default icon is QMessageBox::NoIcon.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#iconPixmap()&quot;&gt;&lt;tt&gt;iconPixmap&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIconPixmap(com.trolltech.qt.gui.QPixmap pixmap)" doc="/**
&lt;p&gt;Sets the current icon to &lt;tt&gt;pixmap&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The icon currently used by the message box. Note that it's often hard to draw one pixmap that looks appropriate in all GUI styles; you may want to supply a different pixmap for each platform.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#iconPixmap()&quot;&gt;&lt;tt&gt;iconPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#icon()&quot;&gt;icon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setInformativeText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the informative text that provides a fuller description for the message to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Infromative text can be used to expand upon the &lt;a href=&quot;QMessageBox.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; to give more information to the user. On the Mac, this text appears in small system font below the &lt;a href=&quot;QMessageBox.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;. On other platforms, it is simply appended to the existing text.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#informativeText()&quot;&gt;&lt;tt&gt;informativeText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStandardButtons(com.trolltech.qt.gui.QMessageBox.StandardButtons buttons)" doc="/**
&lt;p&gt;Sets collection of standard buttons in the message box to &lt;tt&gt;buttons&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property controls which standard buttons are used by the message box.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#standardButtons()&quot;&gt;&lt;tt&gt;standardButtons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the message box text to be displayed. to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The text will be interpreted either as a plain text or as rich text, depending on the text format setting (&lt;tt&gt;QMessageBox::textFormat&lt;/tt&gt;). The default setting is Qt::AutoText, i.e&amp;#x2e; the message box will try to auto-detect the format of the text.&lt;/p&gt;
&lt;p&gt;The default value of this property is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#textFormat()&quot;&gt;&lt;tt&gt;textFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTextFormat(com.trolltech.qt.core.Qt.TextFormat format)" doc="/**
&lt;p&gt;Sets the format of the text displayed by the message box to &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The current text format used by the message box. See the &lt;tt&gt;Qt::TextFormat&lt;/tt&gt; enum for an explanation of the possible options.&lt;/p&gt;
&lt;p&gt;The default format is Qt::AutoText.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#textFormat()&quot;&gt;&lt;tt&gt;textFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMessageBox.StandardButton standardButton(com.trolltech.qt.gui.QAbstractButton button)" doc="/**
&lt;p&gt;Returns the standard button enum value corresponding to the given &lt;tt&gt;button&lt;/tt&gt;, or &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;&lt;tt&gt;NoButton&lt;/tt&gt;&lt;/a&gt; if the given &lt;tt&gt;button&lt;/tt&gt; isn't a standard button.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#button(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#standardButtons()&quot;&gt;&lt;tt&gt;standardButtons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMessageBox.StandardButtons standardButtons()" doc="/**
&lt;p&gt;Returns collection of standard buttons in the message box.&lt;/p&gt;
&lt;p&gt;This property controls which standard buttons are used by the message box.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setStandardButtons(com.trolltech.qt.gui.QMessageBox.StandardButtons)&quot;&gt;&lt;tt&gt;setStandardButtons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#addButton(com.trolltech.qt.gui.QAbstractButton, com.trolltech.qt.gui.QMessageBox.ButtonRole)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the message box text to be displayed..&lt;/p&gt;
&lt;p&gt;The text will be interpreted either as a plain text or as rich text, depending on the text format setting (&lt;tt&gt;QMessageBox::textFormat&lt;/tt&gt;). The default setting is Qt::AutoText, i.e&amp;#x2e; the message box will try to auto-detect the format of the text.&lt;/p&gt;
&lt;p&gt;The default value of this property is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#textFormat()&quot;&gt;&lt;tt&gt;textFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.TextFormat textFormat()" doc="/**
&lt;p&gt;Returns the format of the text displayed by the message box.&lt;/p&gt;
&lt;p&gt;The current text format used by the message box. See the &lt;tt&gt;Qt::TextFormat&lt;/tt&gt; enum for an explanation of the possible options.&lt;/p&gt;
&lt;p&gt;The default format is Qt::AutoText.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#setTextFormat(com.trolltech.qt.core.Qt.TextFormat)&quot;&gt;&lt;tt&gt;setTextFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void closeEvent(com.trolltech.qt.gui.QCloseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public static void about(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text)" doc="/**
&lt;p&gt;Displays a simple about box with title &lt;tt&gt;title&lt;/tt&gt; and text &lt;tt&gt;text&lt;/tt&gt;. The about box's parent is &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QMessageBox.html#about(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;about&lt;/tt&gt;&lt;/a&gt; looks for a suitable icon in four locations:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;It prefers parent-&amp;gt;&lt;/tt&gt;icon()&lt;/tt&gt; if that exists.&lt;/li&gt;
&lt;li&gt;If not, it tries the top-level widget containing &lt;tt&gt;parent&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;If that fails, it tries the active window.&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;As a last resort it uses the Information icon.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The about box has a single button labelled &amp;quot;OK&amp;quot;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::windowIcon&lt;/tt&gt;
@see &lt;tt&gt;QApplication::activeWindow&lt;/tt&gt; */"/>
    <method name="public static void aboutQt(com.trolltech.qt.gui.QWidget parent, java.lang.String title)" doc="/**
&lt;p&gt;Displays a simple message box about Qt, with the given &lt;tt&gt;title&lt;/tt&gt; and centered over &lt;tt&gt;parent&lt;/tt&gt; (if &lt;tt&gt;parent&lt;/tt&gt; is not 0). The message includes the version number of Qt being used by the application.&lt;/p&gt;
&lt;p&gt;This is useful for inclusion in the &lt;b&gt;Help&lt;/b&gt; menu of an application, as shown in the Menus&lt;/tt&gt; example.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; provides this functionality as a slot.&lt;/p&gt;

@see &lt;tt&gt;QApplication::aboutQt&lt;/tt&gt; */"/>
    <method name="public static void aboutQt(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#aboutQt(com.trolltech.qt.gui.QWidget, java.lang.String)&quot;&gt;&lt;tt&gt;aboutQt&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, QString()). */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton critical(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons, com.trolltech.qt.gui.QMessageBox.StandardButton defaultButton)" doc="/**
&lt;p&gt;Opens a critical message box with the title &lt;tt&gt;title&lt;/tt&gt; and the text &lt;tt&gt;text&lt;/tt&gt;. The standard buttons &lt;tt&gt;buttons&lt;/tt&gt; is added to the message box. &lt;tt&gt;defaultButton&lt;/tt&gt; specifies the button be used as the &lt;a href=&quot;QMessageBox.html#defaultButton()&quot;&gt;&lt;tt&gt;defaultButton&lt;/tt&gt;&lt;/a&gt;. If the &lt;tt&gt;defaultButton&lt;/tt&gt; is set to QMessageBox::NoButton, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; picks a suitable default automatically.&lt;/p&gt;
&lt;p&gt;Returns the identity of the standard button that was activated. If &lt;b&gt;Esc&lt;/b&gt; was pressed, returns the &lt;a href=&quot;QMessageBox.html#default-and-escape-keys&quot;&gt;escape button&lt;/tt&gt;&lt;/a&gt; (if any).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the message box becomes an application-global modal dialog box. If &lt;tt&gt;parent&lt;/tt&gt; is a widget, the message box becomes modal relative to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#question(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;question&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;warning&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;information&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton critical(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#critical(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;critical&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, NoButton). */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton critical(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#critical(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;critical&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, Ok, NoButton). */"/>
    <method name="public static int critical(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButton button0, com.trolltech.qt.gui.QMessageBox.StandardButton button1)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton information(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons, com.trolltech.qt.gui.QMessageBox.StandardButton defaultButton)" doc="/**
&lt;p&gt;Opens an information message box with the title &lt;tt&gt;title&lt;/tt&gt; and the text &lt;tt&gt;text&lt;/tt&gt;. The standard buttons &lt;tt&gt;buttons&lt;/tt&gt; is added to the message box. &lt;tt&gt;defaultButton&lt;/tt&gt; specifies the button be used as the &lt;a href=&quot;QMessageBox.html#defaultButton()&quot;&gt;&lt;tt&gt;defaultButton&lt;/tt&gt;&lt;/a&gt;. If the &lt;tt&gt;defaultButton&lt;/tt&gt; is set to QMessageBox::NoButton, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; picks a suitable default automatically.&lt;/p&gt;
&lt;p&gt;Returns the identity of the standard button that was activated. If &lt;b&gt;Esc&lt;/b&gt; was pressed, returns the &lt;a href=&quot;QMessageBox.html#default-and-escape-keys&quot;&gt;escape button&lt;/tt&gt;&lt;/a&gt; (if any).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the message box becomes an application-global modal dialog box. If &lt;tt&gt;parent&lt;/tt&gt; is a widget, the message box becomes modal relative to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#question(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;question&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;warning&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#critical(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;critical&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton information(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;information&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, NoButton). */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton information(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;information&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, Ok, NoButton). */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton information(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButton button0, com.trolltech.qt.gui.QMessageBox.StandardButton button1)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton information(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButton button0)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;information&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;button0&lt;/tt&gt;, NoButton). */"/>
    <method name="public static int question(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButton button0, com.trolltech.qt.gui.QMessageBox.StandardButton button1)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton question(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons, com.trolltech.qt.gui.QMessageBox.StandardButton defaultButton)" doc="/**
&lt;p&gt;Opens a question message box with the title &lt;tt&gt;title&lt;/tt&gt; and the text &lt;tt&gt;text&lt;/tt&gt;. The standard buttons &lt;tt&gt;buttons&lt;/tt&gt; is added to the message box. &lt;tt&gt;defaultButton&lt;/tt&gt; specifies the button be used as the &lt;a href=&quot;QMessageBox.html#defaultButton()&quot;&gt;&lt;tt&gt;defaultButton&lt;/tt&gt;&lt;/a&gt;. If the &lt;tt&gt;defaultButton&lt;/tt&gt; is set to QMessageBox::NoButton, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; picks a suitable default automatically.&lt;/p&gt;
&lt;p&gt;Returns the identity of the standard button that was activated. If &lt;b&gt;Esc&lt;/b&gt; was pressed, returns the &lt;a href=&quot;QMessageBox.html#default-and-escape-keys&quot;&gt;escape button&lt;/tt&gt;&lt;/a&gt; (if any).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the message box becomes an application-global modal dialog box. If &lt;tt&gt;parent&lt;/tt&gt; is a widget, the message box becomes modal relative to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;information&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;warning&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#critical(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;critical&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton question(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#question(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;question&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, NoButton). */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton question(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#question(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;question&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, Ok, NoButton). */"/>
    <method name="public static int warning(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButton button0, com.trolltech.qt.gui.QMessageBox.StandardButton button1)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton warning(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons, com.trolltech.qt.gui.QMessageBox.StandardButton defaultButton)" doc="/**
&lt;p&gt;Opens a warning message box with the title &lt;tt&gt;title&lt;/tt&gt; and the text &lt;tt&gt;text&lt;/tt&gt;. The standard buttons &lt;tt&gt;buttons&lt;/tt&gt; is added to the message box. &lt;tt&gt;defaultButton&lt;/tt&gt; specifies the button be used as the &lt;a href=&quot;QMessageBox.html#defaultButton()&quot;&gt;&lt;tt&gt;defaultButton&lt;/tt&gt;&lt;/a&gt;. If the &lt;tt&gt;defaultButton&lt;/tt&gt; is set to QMessageBox::NoButton, &lt;a href=&quot;QMessageBox.html#QMessageBox(com.trolltech.qt.gui.QMessageBox.Icon, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; picks a suitable default automatically.&lt;/p&gt;
&lt;p&gt;Returns the identity of the standard button that was activated. If &lt;b&gt;Esc&lt;/b&gt; was pressed, returns the &lt;a href=&quot;QMessageBox.html#default-and-escape-keys&quot;&gt;escape button&lt;/tt&gt;&lt;/a&gt; (if any).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the message box becomes an application-global modal dialog box. If &lt;tt&gt;parent&lt;/tt&gt; is a widget, the message box becomes modal relative to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#question(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;question&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;information&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#critical(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;critical&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton warning(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text, com.trolltech.qt.gui.QMessageBox.StandardButtons buttons)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;warning&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, NoButton). */"/>
    <method name="public static com.trolltech.qt.gui.QMessageBox.StandardButton warning(com.trolltech.qt.gui.QWidget parent, java.lang.String title, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;warning&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;title&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, Ok, NoButton). */"/>
    <enum name="ButtonRole" doc="/**
&lt;p&gt;This enum describes the roles that can be used to describe buttons in the button box. Combinations of these roles are as flags used to describe different aspects of their behavior.&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;&lt;tt&gt;StandardButton&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="InvalidRole" doc="/**
&lt;p&gt;The button is invalid.&lt;/p&gt;
 */"/>
        <enum-value name="AcceptRole" doc="/**
&lt;p&gt;Clicking the button causes the dialog to be accepted (e.g&amp;#x2e; OK).&lt;/p&gt;
 */"/>
        <enum-value name="RejectRole" doc="/**
&lt;p&gt;Clicking the button causes the dialog to be rejected (e.g&amp;#x2e; Cancel).&lt;/p&gt;
 */"/>
        <enum-value name="DestructiveRole" doc="/**
&lt;p&gt;Clicking the button causes a destructive change (e.g&amp;#x2e; for Discarding Changes) and closes the dialog.&lt;/p&gt;
 */"/>
        <enum-value name="ActionRole" doc="/**
&lt;p&gt;Clicking the button causes changes to the elements within the dialog, without closing the dialog.&lt;/p&gt;
 */"/>
        <enum-value name="HelpRole" doc="/**
&lt;p&gt;The button can be clicked to request help.&lt;/p&gt;
 */"/>
        <enum-value name="YesRole" doc="/**
&lt;p&gt;The button is a &amp;quot;Yes&amp;quot;-like button.&lt;/p&gt;
 */"/>
        <enum-value name="NoRole" doc="/**
&lt;p&gt;The button is a &amp;quot;No&amp;quot;-like button.&lt;/p&gt;
 */"/>
        <enum-value name="ResetRole" doc="/**
&lt;p&gt;The button resets the dialog's fields to default values.&lt;/p&gt;
 */"/>
        <enum-value name="ApplyRole" doc="/**
&lt;p&gt;The button applies current changes.&lt;/p&gt;
 */"/>
        <enum-value name="NRoles" doc="/**
Internal. */"/>
</enum>
    <enum name="StandardButton" doc="/**
&lt;p&gt;These enums describe flags for standard buttons. Each button has a defined &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ButtonRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Ok&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1024&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;An &amp;quot;OK&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Open&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8192&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Open&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Save&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2048&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Save&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Cancel&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4194304&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Cancel&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;RejectRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Close&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2097152&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Close&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;RejectRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Discard&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8388608&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Discard&amp;quot; or &amp;quot;Don't Save&amp;quot; button, depending on the platform, defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;DestructiveRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Apply&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;33554432&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;An &amp;quot;Apply&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ApplyRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Reset&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;67108864&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Reset&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ResetRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;RestoreDefaults&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;134217728&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Restore Defaults&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ResetRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Help&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16777216&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Help&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;HelpRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;SaveAll&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4096&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Save All&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Yes&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16384&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Yes&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;YesRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;YesToAll&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32768&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Yes to All&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;YesRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;No&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;65536&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;No&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;NoRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoToAll&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;131072&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;No to All&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;NoRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Abort&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;262144&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;An &amp;quot;Abort&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;RejectRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Retry&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;524288&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A &amp;quot;Retry&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Ignore&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1048576&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;An &amp;quot;Ignore&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;An invalid button.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The following values are obsolete:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;YesAll&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32768&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Use &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;&lt;tt&gt;YesToAll&lt;/tt&gt;&lt;/a&gt; instead.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoAll&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;131072&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Use &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;&lt;tt&gt;NoToAll&lt;/tt&gt;&lt;/a&gt; instead.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Default&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;256&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Use the &lt;tt&gt;defaultButton&lt;/tt&gt; argument of &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;information&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;warning&lt;/tt&gt;&lt;/a&gt;, etc. instead, or call &lt;a href=&quot;QMessageBox.html#setDefaultButton(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;setDefaultButton&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Escape&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;512&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Call &lt;a href=&quot;QMessageBox.html#setEscapeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setEscapeButton&lt;/tt&gt;&lt;/a&gt; instead.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;FlagMask&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;768&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;ButtonMask&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;769&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ButtonRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMessageBox.html#standardButtons()&quot;&gt;&lt;tt&gt;standardButtons&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NoButton" doc="/**
&lt;p&gt;An invalid button.&lt;/p&gt;
 */"/>
        <enum-value name="Ok" doc="/**
&lt;p&gt;An &amp;quot;OK&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Save" doc="/**
&lt;p&gt;A &amp;quot;Save&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="SaveAll" doc="/**
&lt;p&gt;A &amp;quot;Save All&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Open" doc="/**
&lt;p&gt;A &amp;quot;Open&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Yes" doc="/**
&lt;p&gt;A &amp;quot;Yes&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;YesRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="YesToAll" doc="/**
&lt;p&gt;A &amp;quot;Yes to All&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;YesRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="No" doc="/**
&lt;p&gt;A &amp;quot;No&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;NoRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="NoToAll" doc="/**
&lt;p&gt;A &amp;quot;No to All&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;NoRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Abort" doc="/**
&lt;p&gt;An &amp;quot;Abort&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;RejectRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Retry" doc="/**
&lt;p&gt;A &amp;quot;Retry&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Ignore" doc="/**
&lt;p&gt;An &amp;quot;Ignore&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;AcceptRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Close" doc="/**
&lt;p&gt;A &amp;quot;Close&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;RejectRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Cancel" doc="/**
&lt;p&gt;A &amp;quot;Cancel&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;RejectRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Discard" doc="/**
&lt;p&gt;A &amp;quot;Discard&amp;quot; or &amp;quot;Don't Save&amp;quot; button, depending on the platform, defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;DestructiveRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Help" doc="/**
&lt;p&gt;A &amp;quot;Help&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;HelpRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Apply" doc="/**
&lt;p&gt;An &amp;quot;Apply&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ApplyRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Reset" doc="/**
&lt;p&gt;A &amp;quot;Reset&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ResetRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="RestoreDefaults" doc="/**
&lt;p&gt;A &amp;quot;Restore Defaults&amp;quot; button defined with the &lt;a href=&quot;QMessageBox.html#ButtonRole-enum&quot;&gt;&lt;tt&gt;ResetRole&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="FirstButton" doc="/**
Internal. */"/>
        <enum-value name="LastButton" doc="/**
Internal. */"/>
        <enum-value name="YesAll" doc="/**
&lt;p&gt;Use &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;&lt;tt&gt;YesToAll&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
 */"/>
        <enum-value name="NoAll" doc="/**
&lt;p&gt;Use &lt;a href=&quot;QMessageBox.html#StandardButton-enum&quot;&gt;&lt;tt&gt;NoToAll&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
 */"/>
        <enum-value name="Default" doc="/**
&lt;p&gt;Use the &lt;tt&gt;defaultButton&lt;/tt&gt; argument of &lt;a href=&quot;QMessageBox.html#information(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButton, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;information&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMessageBox.html#warning(com.trolltech.qt.gui.QWidget, java.lang.String, java.lang.String, com.trolltech.qt.gui.QMessageBox.StandardButtons, com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;warning&lt;/tt&gt;&lt;/a&gt;, etc. instead, or call &lt;a href=&quot;QMessageBox.html#setDefaultButton(com.trolltech.qt.gui.QMessageBox.StandardButton)&quot;&gt;&lt;tt&gt;setDefaultButton&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Escape" doc="/**
&lt;p&gt;Call &lt;a href=&quot;QMessageBox.html#setEscapeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setEscapeButton&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
 */"/>
        <enum-value name="FlagMask" doc="/**
Internal. */"/>
        <enum-value name="ButtonMask" doc="/**
Internal. */"/>
</enum>
    <enum name="Icon" doc="/**
&lt;p&gt;This enum has the following values:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoIcon&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the message box does not have any icon.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Question&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;an icon indicating that the message is asking a question.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Information&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;an icon indicating that the message is nothing out of the ordinary.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Warning&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;an icon indicating that the message is a warning, but can be dealt with.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Critical&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;an icon indicating that the message represents a critical problem.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="NoIcon" doc="/**
&lt;p&gt;the message box does not have any icon.&lt;/p&gt;
 */"/>
        <enum-value name="Information" doc="/**
&lt;p&gt;an icon indicating that the message is nothing out of the ordinary.&lt;/p&gt;
 */"/>
        <enum-value name="Warning" doc="/**
&lt;p&gt;an icon indicating that the message is a warning, but can be dealt with.&lt;/p&gt;
 */"/>
        <enum-value name="Critical" doc="/**
&lt;p&gt;an icon indicating that the message represents a critical problem.&lt;/p&gt;
 */"/>
        <enum-value name="Question" doc="/**
&lt;p&gt;an icon indicating that the message is asking a question.&lt;/p&gt;
 */"/>
</enum>
</class>
