Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 4695

qt-doc-4.8.5-10.fc18.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" />
<!-- q3tabdialog.cpp -->
  <title>Qt 4.8: Q3TabDialog Class Reference</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>Qt3SupportLight</li>
<li>Q3TabDialog</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">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3TabDialog Class Reference</h1>
<!-- $$$Q3TabDialog-brief -->
<p>The Q3TabDialog class provides a stack of tabbed widgets. <a href="#details">More...</a></p>
<!-- @@@Q3TabDialog -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3TabDialog&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qtabdialog">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="qdialog.html">QDialog</a>.</p>
<ul>
<li><a href="q3tabdialog-members.html">List of all members, including inherited members</a></li>
<li><a href="q3tabdialog-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#Q3TabDialog">Q3TabDialog</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, bool <i>modal</i> = false, Qt::WindowFlags <i>f</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#dtor.Q3TabDialog">~Q3TabDialog</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#addTab">addTab</a></b> ( QWidget * <i>child</i>, const QString &amp; <i>label</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#addTab-2">addTab</a></b> ( QWidget * <i>child</i>, const QIcon &amp; <i>iconset</i>, const QString &amp; <i>label</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#changeTab">changeTab</a></b> ( QWidget * <i>w</i>, const QIcon &amp; <i>iconset</i>, const QString &amp; <i>label</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#changeTab-2">changeTab</a></b> ( QWidget * <i>w</i>, const QString &amp; <i>label</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#currentPage">currentPage</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#hasHelpButton">hasHelpButton</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#hasOkButton">hasOkButton</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#insertTab">insertTab</a></b> ( QWidget * <i>child</i>, const QString &amp; <i>label</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#insertTab-2">insertTab</a></b> ( QWidget * <i>child</i>, const QIcon &amp; <i>iconset</i>, const QString &amp; <i>label</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#isTabEnabled">isTabEnabled</a></b> ( QWidget * <i>w</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#removePage">removePage</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setApplyButton">setApplyButton</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setApplyButton-2">setApplyButton</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setCancelButton">setCancelButton</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setCancelButton-2">setCancelButton</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setDefaultButton-2">setDefaultButton</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setFont">setFont</a></b> ( const QFont &amp; <i>font</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setHelpButton">setHelpButton</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setHelpButton-2">setHelpButton</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setOkButton">setOkButton</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setOkButton-2">setOkButton</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a></b> ( QWidget * <i>w</i>, bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#showPage">showPage</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#tabLabel">tabLabel</a></b> ( QWidget * <i>w</i> )</td></tr>
</table>
<ul>
<li class="fn">8 public functions inherited from <a href="qdialog.html#public-functions">QDialog</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#aboutToShow">aboutToShow</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#currentChanged">currentChanged</a></b> ( QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#selected">selected</a></b> ( const QString &amp; <i>name</i> )</td></tr>
</table>
<ul>
<li class="fn">3 signals inherited from <a href="qdialog.html#signals">QDialog</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#setTabBar">setTabBar</a></b> ( QTabBar * <i>tb</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTabBar * </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#tabBar">tabBar</a></b> () const</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#paintEvent">paintEvent</a></b> ( QPaintEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3tabdialog.html#showEvent">showEvent</a></b> ( QShowEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li class="fn">7 protected functions inherited from <a href="qdialog.html#protected-functions">QDialog</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">2 properties inherited from <a href="qdialog.html#properties">QDialog</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">5 public slots inherited from <a href="qdialog.html#public-slots">QDialog</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3TabDialog-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3TabDialog class provides a stack of tabbed widgets.</p>
<p>A tabbed dialog is one in which several &quot;tab pages&quot; are available. By clicking on a tab page's tab or by pressing the indicated Alt+<i>letter</i> key combination, the user can select which tab page they want to use.</p>
<p>Q3TabDialog provides a tab bar consisting of single row of tabs at the top; each tab has an associated widget which is that tab's tab page. In addition, Q3TabDialog provides an OK button and the following optional buttons: Apply, Cancel, Defaults and Help.</p>
<p>The normal way to use Q3TabDialog is to do the following in the constructor:</p>
<ol class="1">
<li>Create a Q3TabDialog.</li>
<li>Create a <a href="qwidget.html">QWidget</a> for each of the pages in the tab dialog, insert children into it, set up geometry management for it, and use <a href="q3tabdialog.html#addTab">addTab</a>() (or <a href="q3tabdialog.html#insertTab">insertTab</a>()) to set up a tab and keyboard accelerator for it.</li>
<li>Set up the buttons for the tab dialog using <a href="q3tabdialog.html#setOkButton">setOkButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), setDefaultsButton(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>() and <a href="q3tabdialog.html#setHelpButton">setHelpButton</a>().</li>
<li>Connect to the signals and slots.</li>
</ol>
<p>If you don't call <a href="q3tabdialog.html#addTab">addTab</a>() the page you have created will not be visible. Don't confuse the object name you supply to the <a href="qwidget.html">QWidget</a> constructor and the tab label you supply to <a href="q3tabdialog.html#addTab">addTab</a>(); <a href="q3tabdialog.html#addTab">addTab</a>() takes user-visible name that appears on the widget's tab and may identify an accelerator, whereas the widget name is used primarily for debugging.</p>
<p>Almost all applications have to connect the <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() signal to something. <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() is emitted when either OK or Apply is clicked, and your slot must copy the dialog's state into the application.</p>
<p>There are also several other signals which may be useful:</p>
<ul>
<li><a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>() is emitted when the user clicks Cancel.</li>
<li><a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>() is emitted when the user clicks Defaults; the slot it is connected to should reset the state of the dialog to the application defaults.</li>
<li><a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>() is emitted when the user clicks Help.</li>
<li><a href="q3tabdialog.html#aboutToShow">aboutToShow</a>() is emitted at the start of show(); if there is any chance that the state of the application may change between the creation of the tab dialog and the time show() is called, you must connect this signal to a slot that resets the state of the dialog.</li>
<li><a href="q3tabdialog.html#currentChanged">currentChanged</a>() is emitted when the user selects a page.</li>
</ul>
<p>Each tab is either enabled or disabled at any given time (see <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>()). If a tab is enabled the tab text is drawn in black and the user can select that tab. If it is disabled the tab is drawn in a different way and the user cannot select that tab. Note that even if a tab is disabled, the page can still be visible; for example, if all of the tabs happen to be disabled.</p>
<p>You can change a tab's label and iconset using <a href="q3tabdialog.html#changeTab">changeTab</a>(). A tab page can be removed with <a href="q3tabdialog.html#removePage">removePage</a>() and shown with <a href="q3tabdialog.html#showPage">showPage</a>(). The current page is given by <a href="q3tabdialog.html#currentPage">currentPage</a>().</p>
<p>Q3TabDialog does not support tabs on the sides or bottom, nor can you set or retrieve the visible page. If you need more functionality than Q3TabDialog provides, consider creating a <a href="qdialog.html">QDialog</a> and using a <a href="qtabbar.html">QTabBar</a> with QTabWidgets.</p>
<p>Most of the functionality in Q3TabDialog is provided by a <a href="qtabwidget.html">QTabWidget</a>.</p>
</div>
<!-- @@@Q3TabDialog -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3TabDialog[overload1]$$$Q3TabDialogQWidget*constchar*boolQt::WindowFlags -->
<h3 class="fn"><a name="Q3TabDialog"></a>Q3TabDialog::<span class="name">Q3TabDialog</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, <span class="type">bool</span> <i>modal</i> = false, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = 0 )</h3>
<p>Constructs a <a href="q3tabdialog.html" class="compat">Q3TabDialog</a> with only an OK button. The <i>parent</i>, <i>name</i>, <i>modal</i> and widget flag, <i>f</i>, arguments are passed on to the <a href="qdialog.html">QDialog</a> constructor.</p>
<!-- @@@Q3TabDialog -->
<!-- $$$~Q3TabDialog[overload1]$$$~Q3TabDialog -->
<h3 class="fn"><a name="dtor.Q3TabDialog"></a>Q3TabDialog::<span class="name">~Q3TabDialog</span> ()</h3>
<p>Destroys the tab dialog.</p>
<!-- @@@~Q3TabDialog -->
<!-- $$$aboutToShow[overload1]$$$aboutToShow -->
<h3 class="fn"><a name="aboutToShow"></a><span class="type">void</span> Q3TabDialog::<span class="name">aboutToShow</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted by show() when it is time to set the state of the dialog's contents. The dialog should reflect the current state of the application when it appears; if there is any possibility that the state of the application may change between the time you call <a href="q3tabdialog.html#Q3TabDialog">Q3TabDialog</a>() and show(), you should set the dialog's state in a slot and connect this signal to it.</p>
<p>This applies mainly to <a href="q3tabdialog.html" class="compat">Q3TabDialog</a> objects that are kept around hidden, rather than being created, shown, and deleted afterwards.</p>
<p><b>See also </b><a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="qwidget.html#show">QWidget::show</a>(), and <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>().</p>
<!-- @@@aboutToShow -->
<!-- $$$addTab[overload1]$$$addTabQWidget*constQString& -->
<h3 class="fn"><a name="addTab"></a><span class="type">void</span> Q3TabDialog::<span class="name">addTab</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>child</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i> )</h3>
<p>Adds another tab and page to the tab view.</p>
<p>The new page is <i>child</i>; the tab's label is <i>label</i>. Note the difference between the widget name (which you supply to widget constructors and to <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>(), for example) and the tab label. The name is internal to the program and invariant, whereas the label is shown on-screen and may vary according to language and other factors.</p>
<p>If the tab's <i>label</i> contains an ampersand, the letter following the ampersand is used as an accelerator for the tab, e.g&#x2e; if the label is &quot;Bro&amp;wse&quot; then Alt+W becomes an accelerator which will move the focus to this tab.</p>
<p>If you call addTab() after show() the screen will flicker and the user may be confused.</p>
<p><b>See also </b><a href="q3tabdialog.html#insertTab">insertTab</a>().</p>
<!-- @@@addTab -->
<!-- $$$addTab$$$addTabQWidget*constQIcon&constQString& -->
<h3 class="fn"><a name="addTab-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">addTab</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>child</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>iconset</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i> )</h3>
<p>This is an overloaded function.</p>
<p>This version of the function shows the <i>iconset</i> as well as the <i>label</i> on the tab of <i>child</i>.</p>
<!-- @@@addTab -->
<!-- $$$applyButtonPressed[overload1]$$$applyButtonPressed -->
<h3 class="fn"><a name="applyButtonPressed"></a><span class="type">void</span> Q3TabDialog::<span class="name">applyButtonPressed</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when either the Apply or OK button is clicked.</p>
<p>It should be connected to a slot (or several slots) that change the application's state according to the state of the dialog.</p>
<p><b>See also </b><a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>().</p>
<!-- @@@applyButtonPressed -->
<!-- $$$cancelButtonPressed[overload1]$$$cancelButtonPressed -->
<h3 class="fn"><a name="cancelButtonPressed"></a><span class="type">void</span> Q3TabDialog::<span class="name">cancelButtonPressed</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the Cancel button is clicked. It is automatically connected to <a href="qdialog.html#reject">QDialog::reject</a>(), which will hide the dialog.</p>
<p>The Cancel button should not change the application's state at all, so you should generally not need to connect it to any slot.</p>
<p><b>See also </b><a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>().</p>
<!-- @@@cancelButtonPressed -->
<!-- $$$changeTab[overload1]$$$changeTabQWidget*constQIcon&constQString& -->
<h3 class="fn"><a name="changeTab"></a><span class="type">void</span> Q3TabDialog::<span class="name">changeTab</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>iconset</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i> )</h3>
<p>Changes tab page <i>w</i>'s iconset to <i>iconset</i> and label to <i>label</i>.</p>
<!-- @@@changeTab -->
<!-- $$$changeTab$$$changeTabQWidget*constQString& -->
<h3 class="fn"><a name="changeTab-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">changeTab</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i> )</h3>
<p>This is an overloaded function.</p>
<p>Defines a new <i>label</i> for the tab of page <i>w</i></p>
<!-- @@@changeTab -->
<!-- $$$currentChanged[overload1]$$$currentChangedQWidget* -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> Q3TabDialog::<span class="name">currentChanged</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the current page changes. <i>widget</i> is the new current page.</p>
<p><b>See also </b><a href="q3tabdialog.html#currentPage">currentPage</a>(), <a href="q3tabdialog.html#showPage">showPage</a>(), and <a href="q3tabdialog.html#tabLabel">tabLabel</a>().</p>
<!-- @@@currentChanged -->
<!-- $$$currentPage[overload1]$$$currentPage -->
<h3 class="fn"><a name="currentPage"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * Q3TabDialog::<span class="name">currentPage</span> () const</h3>
<p>Returns a pointer to the page currently being displayed by the tab dialog. The tab dialog does its best to make sure that this value is never 0 (but if you try hard enough, it can be).</p>
<!-- @@@currentPage -->
<!-- $$$defaultButtonPressed[overload1]$$$defaultButtonPressed -->
<h3 class="fn"><a name="defaultButtonPressed"></a><span class="type">void</span> Q3TabDialog::<span class="name">defaultButtonPressed</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the Defaults button is pressed. It should reset the dialog (but not the application) to the &quot;factory defaults&quot;.</p>
<p>The application's state should not be changed until the user clicks Apply or OK.</p>
<p><b>See also </b><a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>().</p>
<!-- @@@defaultButtonPressed -->
<!-- $$$hasApplyButton[overload1]$$$hasApplyButton -->
<h3 class="fn"><a name="hasApplyButton"></a><span class="type">bool</span> Q3TabDialog::<span class="name">hasApplyButton</span> () const</h3>
<p>Returns true if the tab dialog has an Apply button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>()</p>
<p><b>See also </b><a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), and <a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>().</p>
<!-- @@@hasApplyButton -->
<!-- $$$hasCancelButton[overload1]$$$hasCancelButton -->
<h3 class="fn"><a name="hasCancelButton"></a><span class="type">bool</span> Q3TabDialog::<span class="name">hasCancelButton</span> () const</h3>
<p>Returns true if the tab dialog has a Cancel button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>()</p>
<p><b>See also </b><a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>().</p>
<!-- @@@hasCancelButton -->
<!-- $$$hasDefaultButton[overload1]$$$hasDefaultButton -->
<h3 class="fn"><a name="hasDefaultButton"></a><span class="type">bool</span> Q3TabDialog::<span class="name">hasDefaultButton</span> () const</h3>
<p>Returns true if the tab dialog has a Defaults button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>()</p>
<p><b>See also </b><a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>().</p>
<!-- @@@hasDefaultButton -->
<!-- $$$hasHelpButton[overload1]$$$hasHelpButton -->
<h3 class="fn"><a name="hasHelpButton"></a><span class="type">bool</span> Q3TabDialog::<span class="name">hasHelpButton</span> () const</h3>
<p>Returns true if the tab dialog has a Help button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>()</p>
<p><b>See also </b><a href="q3tabdialog.html#setHelpButton">setHelpButton</a>(), <a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>(), and <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>().</p>
<!-- @@@hasHelpButton -->
<!-- $$$hasOkButton[overload1]$$$hasOkButton -->
<h3 class="fn"><a name="hasOkButton"></a><span class="type">bool</span> Q3TabDialog::<span class="name">hasOkButton</span> () const</h3>
<p>Returns true if the tab dialog has an OK button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>()</p>
<p><b>See also </b><a href="q3tabdialog.html#setOkButton">setOkButton</a>(), <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>(), and <a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>().</p>
<!-- @@@hasOkButton -->
<!-- $$$helpButtonPressed[overload1]$$$helpButtonPressed -->
<h3 class="fn"><a name="helpButtonPressed"></a><span class="type">void</span> Q3TabDialog::<span class="name">helpButtonPressed</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the Help button is pressed. It could be used to present information about how to use the dialog.</p>
<p><b>See also </b><a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="q3tabdialog.html#setHelpButton">setHelpButton</a>().</p>
<!-- @@@helpButtonPressed -->
<!-- $$$insertTab[overload1]$$$insertTabQWidget*constQString&int -->
<h3 class="fn"><a name="insertTab"></a><span class="type">void</span> Q3TabDialog::<span class="name">insertTab</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>child</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i>, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Inserts another tab and page to the tab view.</p>
<p>The new page is <i>child</i>; the tab's label is <i>label</i>. Note the difference between the widget name (which you supply to widget constructors and to <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>(), for example) and the tab label. The name is internal to the program and invariant, whereas the label is shown on-screen and may vary according to language and other factors.</p>
<p>If the tab's <i>label</i> contains an ampersand, the letter following the ampersand is used as an accelerator for the tab, e.g&#x2e; if the label is &quot;Bro&amp;wse&quot; then Alt+W becomes an accelerator which will move the focus to this tab.</p>
<p>If <i>index</i> is not specified, the tab is simply added. Otherwise it is inserted at the specified position.</p>
<p>If you call insertTab() after show(), the screen will flicker and the user may be confused.</p>
<p><b>See also </b><a href="q3tabdialog.html#addTab">addTab</a>().</p>
<!-- @@@insertTab -->
<!-- $$$insertTab$$$insertTabQWidget*constQIcon&constQString&int -->
<h3 class="fn"><a name="insertTab-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">insertTab</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>child</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>iconset</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i>, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>This is an overloaded function.</p>
<p>This version of the function shows the <i>iconset</i> as well as the <i>label</i> on the tab of <i>child</i>.</p>
<!-- @@@insertTab -->
<!-- $$$isTabEnabled[overload1]$$$isTabEnabledQWidget* -->
<h3 class="fn"><a name="isTabEnabled"></a><span class="type">bool</span> Q3TabDialog::<span class="name">isTabEnabled</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> ) const</h3>
<p>Returns true if the page <i>w</i> is enabled; otherwise returns false.</p>
<p><b>See also </b><a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::isEnabled</a>().</p>
<!-- @@@isTabEnabled -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> Q3TabDialog::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$removePage[overload1]$$$removePageQWidget* -->
<h3 class="fn"><a name="removePage"></a><span class="type">void</span> Q3TabDialog::<span class="name">removePage</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )</h3>
<p>Removes page <i>w</i> from this stack of widgets. Does not delete <i>w</i>.</p>
<p><b>See also </b><a href="q3tabdialog.html#showPage">showPage</a>() and <a href="qtabwidget-qt3.html#removePage" class="compat">QTabWidget::removePage</a>().</p>
<!-- @@@removePage -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> Q3TabDialog::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$selected[overload1]$$$selectedconstQString& -->
<h3 class="fn"><a name="selected"></a><span class="type">void</span> Q3TabDialog::<span class="name">selected</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever a tab is selected (raised), including during the first show(). <i>name</i> is the name of the selected tab.</p>
<p><b>See also </b><a href="qwidget.html#raise">raise</a>().</p>
<!-- @@@selected -->
<!-- $$$setApplyButton[overload1]$$$setApplyButtonconstQString& -->
<h3 class="fn"><a name="setApplyButton"></a><span class="type">void</span> Q3TabDialog::<span class="name">setApplyButton</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Adds an Apply button to the dialog. The button's text is set to <i>text</i>.</p>
<p>The Apply button should apply the current settings in the dialog box to the application while keeping the dialog visible.</p>
<p>When Apply is clicked, the <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() signal is emitted.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p><b>See also </b><a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), and <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>().</p>
<!-- @@@setApplyButton -->
<!-- $$$setApplyButton$$$setApplyButton -->
<h3 class="fn"><a name="setApplyButton-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">setApplyButton</span> ()</h3>
<p>This is an overloaded function.</p>
<p>Adds an Apply button to the dialog. The button's text is set to a localizable &quot;Apply&quot;.</p>
<!-- @@@setApplyButton -->
<!-- $$$setCancelButton[overload1]$$$setCancelButtonconstQString& -->
<h3 class="fn"><a name="setCancelButton"></a><span class="type">void</span> Q3TabDialog::<span class="name">setCancelButton</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Adds a Cancel button to the dialog. The button's text is set to <i>text</i>.</p>
<p>The cancel button should always return the application to the state it was in before the tab view popped up, or if the user has clicked Apply, back to the state immediately after the last Apply.</p>
<p>When Cancel is clicked, the <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>() signal is emitted. The dialog is closed at the same time.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p><b>See also </b><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), and <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>().</p>
<!-- @@@setCancelButton -->
<!-- $$$setCancelButton$$$setCancelButton -->
<h3 class="fn"><a name="setCancelButton-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">setCancelButton</span> ()</h3>
<p>This is an overloaded function.</p>
<p>Adds a Cancel button to the dialog. The button's text is set to a localizable &quot;Cancel&quot;.</p>
<!-- @@@setCancelButton -->
<!-- $$$setDefaultButton[overload1]$$$setDefaultButtonconstQString& -->
<h3 class="fn"><a name="setDefaultButton"></a><span class="type">void</span> Q3TabDialog::<span class="name">setDefaultButton</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Adds a Defaults button to the dialog. The button's text is set to <i>text</i>.</p>
<p>The Defaults button should set the dialog (but not the application) back to the application defaults.</p>
<p>When Defaults is clicked, the <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>() signal is emitted.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p><b>See also </b><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), and <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>().</p>
<!-- @@@setDefaultButton -->
<!-- $$$setDefaultButton$$$setDefaultButton -->
<h3 class="fn"><a name="setDefaultButton-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">setDefaultButton</span> ()</h3>
<p>This is an overloaded function.</p>
<p>Adds a Defaults button to the dialog. The button's text is set to a localizable &quot;Defaults&quot;.</p>
<!-- @@@setDefaultButton -->
<!-- $$$setFont[overload1]$$$setFontconstQFont& -->
<h3 class="fn"><a name="setFont"></a><span class="type">void</span> Q3TabDialog::<span class="name">setFont</span> ( const <span class="type"><a href="qfont.html">QFont</a></span> &amp; <i>font</i> )</h3>
<p>Sets the font for the tabs to <i>font</i>.</p>
<p>If the widget is visible, the display is updated with the new font immediately. There may be some geometry changes, depending on the size of the old and new fonts.</p>
<!-- @@@setFont -->
<!-- $$$setHelpButton[overload1]$$$setHelpButtonconstQString& -->
<h3 class="fn"><a name="setHelpButton"></a><span class="type">void</span> Q3TabDialog::<span class="name">setHelpButton</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Adds a Help button to the dialog. The button's text is set to <i>text</i>.</p>
<p>When Help is clicked, the <a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>() signal is emitted.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p><b>See also </b><a href="q3tabdialog.html#hasHelpButton">hasHelpButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), and <a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>().</p>
<!-- @@@setHelpButton -->
<!-- $$$setHelpButton$$$setHelpButton -->
<h3 class="fn"><a name="setHelpButton-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">setHelpButton</span> ()</h3>
<p>This is an overloaded function.</p>
<p>Adds a Help button to the dialog. The button's text is set to a localizable &quot;Help&quot;.</p>
<!-- @@@setHelpButton -->
<!-- $$$setOkButton[overload1]$$$setOkButtonconstQString& -->
<h3 class="fn"><a name="setOkButton"></a><span class="type">void</span> Q3TabDialog::<span class="name">setOkButton</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Adds an OK button to the dialog and sets the button's text to <i>text</i>.</p>
<p>When the OK button is clicked, the <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() signal is emitted, and the current settings in the dialog box should be applied to the application. The dialog then closes.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p><b>See also </b><a href="q3tabdialog.html#hasOkButton">hasOkButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), and <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>().</p>
<!-- @@@setOkButton -->
<!-- $$$setOkButton$$$setOkButton -->
<h3 class="fn"><a name="setOkButton-2"></a><span class="type">void</span> Q3TabDialog::<span class="name">setOkButton</span> ()</h3>
<p>This is an overloaded function.</p>
<p>Adds an OK button to the dialog. The button's text is set to a localizable &quot;OK&quot;.</p>
<!-- @@@setOkButton -->
<!-- $$$setTabBar[overload1]$$$setTabBarQTabBar* -->
<h3 class="fn"><a name="setTabBar"></a><span class="type">void</span> Q3TabDialog::<span class="name">setTabBar</span> ( <span class="type"><a href="qtabbar.html">QTabBar</a></span> * <i>tb</i> )<tt> [protected]</tt></h3>
<p>Replaces the <a href="qtabbar.html">QTabBar</a> heading the dialog by the given tab bar, <i>tb</i>. Note that this must be called <i>before</i> any tabs have been added, or the behavior is undefined.</p>
<p><b>See also </b><a href="q3tabdialog.html#tabBar">tabBar</a>().</p>
<!-- @@@setTabBar -->
<!-- $$$setTabEnabled[overload1]$$$setTabEnabledQWidget*bool -->
<h3 class="fn"><a name="setTabEnabled"></a><span class="type">void</span> Q3TabDialog::<span class="name">setTabEnabled</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i>, <span class="type">bool</span> <i>enable</i> )</h3>
<p>If <i>enable</i> is true the page <i>w</i> is enabled; otherwise <i>w</i> is disabled. The page's tab is redrawn appropriately.</p>
<p><a href="qtabwidget.html">QTabWidget</a> uses <a href="qwidget.html#enabled-prop">QWidget::setEnabled</a>() internally, rather than keeping a separate flag.</p>
<p>Note that even a disabled tab and tab page may be visible. If the page is already visible <a href="qtabwidget.html">QTabWidget</a> will not hide it; if all the pages are disabled <a href="qtabwidget.html">QTabWidget</a> will show one of them.</p>
<p><b>See also </b><a href="q3tabdialog.html#isTabEnabled">isTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::setEnabled</a>().</p>
<!-- @@@setTabEnabled -->
<!-- $$$showEvent[overload1]$$$showEventQShowEvent* -->
<h3 class="fn"><a name="showEvent"></a><span class="type">void</span> Q3TabDialog::<span class="name">showEvent</span> ( <span class="type"><a href="qshowevent.html">QShowEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$showPage[overload1]$$$showPageQWidget* -->
<h3 class="fn"><a name="showPage"></a><span class="type">void</span> Q3TabDialog::<span class="name">showPage</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )</h3>
<p>Ensures that widget <i>w</i> is shown. This is mainly useful for accelerators.</p>
<p><b>Warning:</b> If used carelessly, this function can easily surprise or confuse the user.</p>
<p><b>See also </b><a href="qtabbar-qt3.html#setCurrentTab" class="compat">QTabBar::setCurrentTab</a>().</p>
<!-- @@@showPage -->
<!-- $$$tabBar[overload1]$$$tabBar -->
<h3 class="fn"><a name="tabBar"></a><span class="type"><a href="qtabbar.html">QTabBar</a></span> * Q3TabDialog::<span class="name">tabBar</span> () const<tt> [protected]</tt></h3>
<p>Returns the currently set <a href="qtabbar.html">QTabBar</a>.</p>
<p><b>See also </b><a href="q3tabdialog.html#setTabBar">setTabBar</a>().</p>
<!-- @@@tabBar -->
<!-- $$$tabLabel[overload1]$$$tabLabelQWidget* -->
<h3 class="fn"><a name="tabLabel"></a><span class="type"><a href="qstring.html">QString</a></span> Q3TabDialog::<span class="name">tabLabel</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )</h3>
<p>Returns the text in the tab for page <i>w</i>.</p>
<!-- @@@tabLabel -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. 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>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      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>