Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5745

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmessagebox.cpp -->
  <title>Qt 4.8: Obsolete Members for QMessageBox</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QMessageBox</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<h1 class="title">Obsolete Members for QMessageBox</h1>
<p><b>The following class members are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p>
<p><ul><li><a href="qmessagebox.html">QMessageBox class reference</a></li></ul></p>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#Button-typedef">Button</a></b><tt> (obsolete)</tt></td></tr>
</table>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#QMessageBox-3">QMessageBox</a></b> ( const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, Icon <i>icon</i>, int <i>button0</i>, int <i>button1</i>, int <i>button2</i>, QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>f</i> = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#buttonText">buttonText</a></b> ( int <i>button</i> ) const<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#setButtonText">setButtonText</a></b> ( int <i>button</i>, const QString &amp; <i>text</i> )<tt> (obsolete)</tt></td></tr>
</table>
<ul>
<li class="fn">4 public functions inherited from <a href="qdialog.html#public-functions">QDialog</a></li>
<li class="fn">3 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
</ul>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#critical-2">critical</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, int <i>button0</i>, int <i>button1</i>, int <i>button2</i> = 0 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#critical-4">critical</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, const QString &amp; <i>button0Text</i>, const QString &amp; <i>button1Text</i> = QString(), const QString &amp; <i>button2Text</i> = QString(), int <i>defaultButtonNumber</i> = 0, int <i>escapeButtonNumber</i> = -1 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#information-2">information</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, int <i>button0</i>, int <i>button1</i> = 0, int <i>button2</i> = 0 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#information-4">information</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, const QString &amp; <i>button0Text</i>, const QString &amp; <i>button1Text</i> = QString(), const QString &amp; <i>button2Text</i> = QString(), int <i>defaultButtonNumber</i> = 0, int <i>escapeButtonNumber</i> = -1 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#question-2">question</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, int <i>button0</i>, int <i>button1</i> = 0, int <i>button2</i> = 0 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#question-4">question</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, const QString &amp; <i>button0Text</i>, const QString &amp; <i>button1Text</i> = QString(), const QString &amp; <i>button2Text</i> = QString(), int <i>defaultButtonNumber</i> = 0, int <i>escapeButtonNumber</i> = -1 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QPixmap </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#standardIcon-2">standardIcon</a></b> ( Icon <i>icon</i> )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#warning-2">warning</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, int <i>button0</i>, int <i>button1</i>, int <i>button2</i> = 0 )<tt> (obsolete)</tt></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmessagebox-obsolete.html#warning-4">warning</a></b> ( QWidget * <i>parent</i>, const QString &amp; <i>title</i>, const QString &amp; <i>text</i>, const QString &amp; <i>button0Text</i>, const QString &amp; <i>button1Text</i> = QString(), const QString &amp; <i>button2Text</i> = QString(), int <i>defaultButtonNumber</i> = 0, int <i>escapeButtonNumber</i> = -1 )<tt> (obsolete)</tt></td></tr>
</table>
<h2>Member Type Documentation</h2>
<!-- $$$Button -->
<h3 class="fn"><a name="Button-typedef"></a>typedef QMessageBox::<span class="name">Button</span></h3>
<p>Use <a href="qmessagebox.html#StandardButton-enum">QMessageBox::StandardButton</a> instead.</p>
<!-- @@@Button -->
<h2>Member Function Documentation</h2>
<!-- $$$QMessageBox$$$QMessageBoxconstQString&constQString&IconintintintQWidget*Qt::WindowFlags -->
<h3 class="fn"><a name="QMessageBox-3"></a>QMessageBox::<span class="name">QMessageBox</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="qmessagebox.html#Icon-enum">Icon</a></span> <i>icon</i>, <span class="type">int</span> <i>button0</i>, <span class="type">int</span> <i>button1</i>, <span class="type">int</span> <i>button2</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint )</h3>
<p>Constructs a message box with a <i>title</i>, a <i>text</i>, an <i>icon</i>, and up to three buttons.</p>
<p>The <i>icon</i> must be one of the following:</p>
<ul>
<li><a href="qmessagebox.html#Icon-enum">QMessageBox::NoIcon</a></li>
<li><a href="qmessagebox.html#Icon-enum">QMessageBox::Question</a></li>
<li><a href="qmessagebox.html#Icon-enum">QMessageBox::Information</a></li>
<li><a href="qmessagebox.html#Icon-enum">QMessageBox::Warning</a></li>
<li><a href="qmessagebox.html#Icon-enum">QMessageBox::Critical</a></li>
</ul>
<p>Each button, <i>button0</i>, <i>button1</i> and <i>button2</i>, can have one of the following values:</p>
<ul>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Cancel</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Abort</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Retry</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ignore</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::YesAll</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoAll</a></li>
</ul>
<p>Use <a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a> for the later parameters to have fewer than three buttons in your message box. If you don't specify any buttons at all, <a href="qmessagebox.html">QMessageBox</a> will provide an Ok button.</p>
<p>One of the buttons can be OR-ed with the <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Default</a> flag to make it the default button (clicked when Enter is pressed).</p>
<p>One of the buttons can be OR-ed with the <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Escape</a> flag to make it the cancel or close button (clicked when <b>Esc</b> is pressed).</p>
<pre class="cpp">         <span class="type"><a href="qmessagebox.html">QMessageBox</a></span> mb(<span class="string">&quot;Application Name&quot;</span><span class="operator">,</span>
                        <span class="string">&quot;Hardware failure.\n\nDisk error detected\nDo you want to stop?&quot;</span><span class="operator">,</span>
                        <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>Question<span class="operator">,</span>
                        <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>Yes <span class="operator">|</span> <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>Default<span class="operator">,</span>
                        <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>No <span class="operator">|</span> <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>Escape<span class="operator">,</span>
                        <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>NoButton);
         <span class="keyword">if</span> (mb<span class="operator">.</span>exec() <span class="operator">=</span><span class="operator">=</span> <span class="type"><a href="qmessagebox.html">QMessageBox</a></span><span class="operator">::</span>No) {
             <span class="comment">// try again</span></pre>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p>The <i>parent</i> and <i>f</i> arguments are passed to the <a href="qdialog.html">QDialog</a> constructor.</p>
<p><b>See also </b><a href="qmessagebox.html#setWindowTitle">setWindowTitle</a>(), <a href="qmessagebox.html#text-prop">setText</a>(), and <a href="qmessagebox.html#icon-prop">setIcon</a>().</p>
<!-- @@@QMessageBox -->
<!-- $$$buttonText[overload1]$$$buttonTextint -->
<h3 class="fn"><a name="buttonText"></a><span class="type"><a href="qstring.html">QString</a></span> QMessageBox::<span class="name">buttonText</span> ( <span class="type">int</span> <i>button</i> ) const</h3>
<p>Returns the text of the message box button <i>button</i>, or an empty string if the message box does not contain the button.</p>
<p>Use <a href="qmessagebox.html#button">button</a>() and <a href="qabstractbutton.html#text-prop">QPushButton::text</a>() instead.</p>
<p><b>See also </b><a href="qmessagebox-obsolete.html#setButtonText">setButtonText</a>().</p>
<!-- @@@buttonText -->
<!-- $$$critical$$$criticalQWidget*constQString&constQString&intintint -->
<h3 class="fn"><a name="critical-2"></a><span class="type">int</span> QMessageBox::<span class="name">critical</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type">int</span> <i>button0</i>, <span class="type">int</span> <i>button1</i>, <span class="type">int</span> <i>button2</i> = 0 )<tt> [static]</tt></h3>
<p>Opens a critical message box with the given <i>title</i> and <i>text</i>. The dialog may have up to three buttons. Each of the button parameters, <i>button0</i>, <i>button1</i> and <i>button2</i> may be set to one of the following values:</p>
<ul>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Cancel</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Abort</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Retry</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ignore</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::YesAll</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoAll</a></li>
</ul>
<p>If you don't want all three buttons, set the last button, or last two buttons to <a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a>.</p>
<p>One button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Default</a>, and one button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Escape</a>.</p>
<p>Returns the identity (<a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a>, or <a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a>, etc.) of the button that was clicked.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#information">information</a>(), <a href="qmessagebox.html#question">question</a>(), and <a href="qmessagebox.html#warning">warning</a>().</p>
<!-- @@@critical -->
<!-- $$$critical$$$criticalQWidget*constQString&constQString&constQString&constQString&constQString&intint -->
<h3 class="fn"><a name="critical-4"></a><span class="type">int</span> QMessageBox::<span class="name">critical</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button0Text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button1Text</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button2Text</i> = QString(), <span class="type">int</span> <i>defaultButtonNumber</i> = 0, <span class="type">int</span> <i>escapeButtonNumber</i> = -1 )<tt> [static]</tt></h3>
<p>This is an overloaded function.</p>
<p>Displays a critical error message box with the given <i>title</i> and <i>text</i>, as well as one, two, or three buttons. Returns the number of the button that was clicked (0, 1 or 2).</p>
<p><i>button0Text</i> is the text of the first button, and is optional. If <i>button0Text</i> is not supplied, &quot;OK&quot; (translated) will be used. <i>button1Text</i> is the text of the second button, and is optional, and <i>button2Text</i> is the text of the third button, and is optional. <i>defaultButtonNumber</i> (0, 1 or 2) is the index of the default button; pressing Return or Enter is the same as clicking the default button. It defaults to 0 (the first button). <i>escapeButtonNumber</i> is the index of the Escape button; pressing Escape is the same as clicking this button. It defaults to -1; supply 0, 1, or 2 to make pressing Escape equivalent to clicking the relevant button.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#information">information</a>(), <a href="qmessagebox.html#question">question</a>(), and <a href="qmessagebox.html#warning">warning</a>().</p>
<!-- @@@critical -->
<!-- $$$information$$$informationQWidget*constQString&constQString&intintint -->
<h3 class="fn"><a name="information-2"></a><span class="type">int</span> QMessageBox::<span class="name">information</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type">int</span> <i>button0</i>, <span class="type">int</span> <i>button1</i> = 0, <span class="type">int</span> <i>button2</i> = 0 )<tt> [static]</tt></h3>
<p>Opens an information message box with the given <i>title</i> and the <i>text</i>. The dialog may have up to three buttons. Each of the buttons, <i>button0</i>, <i>button1</i> and <i>button2</i> may be set to one of the following values:</p>
<ul>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Cancel</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Abort</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Retry</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ignore</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::YesAll</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoAll</a></li>
</ul>
<p>If you don't want all three buttons, set the last button, or last two buttons to <a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a>.</p>
<p>One button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Default</a>, and one button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Escape</a>.</p>
<p>Returns the identity (<a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a>, or <a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a>, etc.) of the button that was clicked.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#question">question</a>(), <a href="qmessagebox.html#warning">warning</a>(), and <a href="qmessagebox.html#critical">critical</a>().</p>
<!-- @@@information -->
<!-- $$$information$$$informationQWidget*constQString&constQString&constQString&constQString&constQString&intint -->
<h3 class="fn"><a name="information-4"></a><span class="type">int</span> QMessageBox::<span class="name">information</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button0Text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button1Text</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button2Text</i> = QString(), <span class="type">int</span> <i>defaultButtonNumber</i> = 0, <span class="type">int</span> <i>escapeButtonNumber</i> = -1 )<tt> [static]</tt></h3>
<p>This is an overloaded function.</p>
<p>Displays an information message box with the given <i>title</i> and <i>text</i>, as well as one, two or three buttons. Returns the index of the button that was clicked (0, 1 or 2).</p>
<p><i>button0Text</i> is the text of the first button, and is optional. If <i>button0Text</i> is not supplied, &quot;OK&quot; (translated) will be used. <i>button1Text</i> is the text of the second button, and is optional. <i>button2Text</i> is the text of the third button, and is optional. <i>defaultButtonNumber</i> (0, 1 or 2) is the index of the default button; pressing Return or Enter is the same as clicking the default button. It defaults to 0 (the first button). <i>escapeButtonNumber</i> is the index of the escape button; pressing <b>Esc</b> is the same as clicking this button. It defaults to -1; supply 0, 1 or 2 to make pressing <b>Esc</b> equivalent to clicking the relevant button.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#question">question</a>(), <a href="qmessagebox.html#warning">warning</a>(), and <a href="qmessagebox.html#critical">critical</a>().</p>
<!-- @@@information -->
<!-- $$$question$$$questionQWidget*constQString&constQString&intintint -->
<h3 class="fn"><a name="question-2"></a><span class="type">int</span> QMessageBox::<span class="name">question</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type">int</span> <i>button0</i>, <span class="type">int</span> <i>button1</i> = 0, <span class="type">int</span> <i>button2</i> = 0 )<tt> [static]</tt></h3>
<p>Opens a question message box with the given <i>title</i> and <i>text</i>. The dialog may have up to three buttons. Each of the buttons, <i>button0</i>, <i>button1</i> and <i>button2</i> may be set to one of the following values:</p>
<ul>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Cancel</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Abort</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Retry</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ignore</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::YesAll</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoAll</a></li>
</ul>
<p>If you don't want all three buttons, set the last button, or last two buttons to <a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a>.</p>
<p>One button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Default</a>, and one button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Escape</a>.</p>
<p>Returns the identity (<a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a>, or <a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a>, etc.) of the button that was clicked.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#information">information</a>(), <a href="qmessagebox.html#warning">warning</a>(), and <a href="qmessagebox.html#critical">critical</a>().</p>
<!-- @@@question -->
<!-- $$$question$$$questionQWidget*constQString&constQString&constQString&constQString&constQString&intint -->
<h3 class="fn"><a name="question-4"></a><span class="type">int</span> QMessageBox::<span class="name">question</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button0Text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button1Text</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button2Text</i> = QString(), <span class="type">int</span> <i>defaultButtonNumber</i> = 0, <span class="type">int</span> <i>escapeButtonNumber</i> = -1 )<tt> [static]</tt></h3>
<p>This is an overloaded function.</p>
<p>Displays a question message box with the given <i>title</i> and <i>text</i>, as well as one, two or three buttons. Returns the index of the button that was clicked (0, 1 or 2).</p>
<p><i>button0Text</i> is the text of the first button, and is optional. If <i>button0Text</i> is not supplied, &quot;OK&quot; (translated) will be used. <i>button1Text</i> is the text of the second button, and is optional. <i>button2Text</i> is the text of the third button, and is optional. <i>defaultButtonNumber</i> (0, 1 or 2) is the index of the default button; pressing Return or Enter is the same as clicking the default button. It defaults to 0 (the first button). <i>escapeButtonNumber</i> is the index of the Escape button; pressing Escape is the same as clicking this button. It defaults to -1; supply 0, 1 or 2 to make pressing Escape equivalent to clicking the relevant button.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#information">information</a>(), <a href="qmessagebox.html#warning">warning</a>(), and <a href="qmessagebox.html#critical">critical</a>().</p>
<!-- @@@question -->
<!-- $$$setButtonText[overload1]$$$setButtonTextintconstQString& -->
<h3 class="fn"><a name="setButtonText"></a><span class="type">void</span> QMessageBox::<span class="name">setButtonText</span> ( <span class="type">int</span> <i>button</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Sets the text of the message box button <i>button</i> to <i>text</i>. Setting the text of a button that is not in the message box is silently ignored.</p>
<p>Use <a href="qmessagebox.html#addButton">addButton</a>() instead.</p>
<p><b>See also </b><a href="qmessagebox-obsolete.html#buttonText">buttonText</a>().</p>
<!-- @@@setButtonText -->
<!-- $$$standardIcon$$$standardIconIcon -->
<h3 class="fn"><a name="standardIcon-2"></a><span class="type"><a href="qpixmap.html">QPixmap</a></span> QMessageBox::<span class="name">standardIcon</span> ( <span class="type"><a href="qmessagebox.html#Icon-enum">Icon</a></span> <i>icon</i> )<tt> [static]</tt></h3>
<p>Returns the pixmap used for a standard icon. This allows the pixmaps to be used in more complex message boxes. <i>icon</i> specifies the required icon, e.g&#x2e; <a href="qmessagebox.html#Icon-enum">QMessageBox::Question</a>, <a href="qmessagebox.html#Icon-enum">QMessageBox::Information</a>, <a href="qmessagebox.html#Icon-enum">QMessageBox::Warning</a> or <a href="qmessagebox.html#Icon-enum">QMessageBox::Critical</a>.</p>
<p>Call <a href="qstyle.html#standardIcon">QStyle::standardIcon</a>() with <a href="qstyle.html#StandardPixmap-enum">QStyle::SP_MessageBoxInformation</a> etc. instead.</p>
<!-- @@@standardIcon -->
<!-- $$$warning$$$warningQWidget*constQString&constQString&intintint -->
<h3 class="fn"><a name="warning-2"></a><span class="type">int</span> QMessageBox::<span class="name">warning</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type">int</span> <i>button0</i>, <span class="type">int</span> <i>button1</i>, <span class="type">int</span> <i>button2</i> = 0 )<tt> [static]</tt></h3>
<p>Opens a warning message box with the given <i>title</i> and <i>text</i>. The dialog may have up to three buttons. Each of the button parameters, <i>button0</i>, <i>button1</i> and <i>button2</i> may be set to one of the following values:</p>
<ul>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Cancel</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Abort</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Retry</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ignore</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::YesAll</a></li>
<li><a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoAll</a></li>
</ul>
<p>If you don't want all three buttons, set the last button, or last two buttons to <a href="qmessagebox.html#StandardButton-enum">QMessageBox::NoButton</a>.</p>
<p>One button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Default</a>, and one button can be OR-ed with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Escape</a>.</p>
<p>Returns the identity (<a href="qmessagebox.html#StandardButton-enum">QMessageBox::Ok</a> or <a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a> or ..&#x2e;) of the button that was clicked.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#information">information</a>(), <a href="qmessagebox.html#question">question</a>(), and <a href="qmessagebox.html#critical">critical</a>().</p>
<!-- @@@warning -->
<!-- $$$warning$$$warningQWidget*constQString&constQString&constQString&constQString&constQString&intint -->
<h3 class="fn"><a name="warning-4"></a><span class="type">int</span> QMessageBox::<span class="name">warning</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button0Text</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button1Text</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>button2Text</i> = QString(), <span class="type">int</span> <i>defaultButtonNumber</i> = 0, <span class="type">int</span> <i>escapeButtonNumber</i> = -1 )<tt> [static]</tt></h3>
<p>This is an overloaded function.</p>
<p>Displays a warning message box with the given <i>title</i> and <i>text</i>, as well as one, two, or three buttons. Returns the number of the button that was clicked (0, 1, or 2).</p>
<p><i>button0Text</i> is the text of the first button, and is optional. If <i>button0Text</i> is not supplied, &quot;OK&quot; (translated) will be used. <i>button1Text</i> is the text of the second button, and is optional, and <i>button2Text</i> is the text of the third button, and is optional. <i>defaultButtonNumber</i> (0, 1 or 2) is the index of the default button; pressing Return or Enter is the same as clicking the default button. It defaults to 0 (the first button). <i>escapeButtonNumber</i> is the index of the Escape button; pressing Escape is the same as clicking this button. It defaults to -1; supply 0, 1, or 2 to make pressing Escape equivalent to clicking the relevant button.</p>
<p>The message box is an <a href="qt.html#WindowModality-enum">application modal</a> dialog box.</p>
<p><b>Warning:</b> Do not delete <i>parent</i> during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the <a href="qmessagebox.html">QMessageBox</a> constructors.</p>
<p><b>See also </b><a href="qmessagebox.html#information">information</a>(), <a href="qmessagebox.html#question">question</a>(), and <a href="qmessagebox.html#critical">critical</a>().</p>
<!-- @@@warning -->
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>