This file is indexed.

/usr/share/qt3/doc/html/qtabdialog.html is in qt3-doc 3:3.3.8-b-8ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/dialogs/qtabdialog.cpp:53 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>QTabDialog Class</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
 <a href="index.html">
<font color="#004faf">Home</font></a>
 | <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
 | <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
 | <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
 | <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
 | <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QTabDialog Class Reference</h1>

<p>The QTabDialog class provides a stack of tabbed widgets.
<a href="#details">More...</a>
<p><tt>#include &lt;<a href="qtabdialog-h.html">qtabdialog.h</a>&gt;</tt>
<p>Inherits <a href="qdialog.html">QDialog</a>.
<p><a href="qtabdialog-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li class=fn><a href="#QTabDialog"><b>QTabDialog</b></a> ( QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, bool&nbsp;modal = FALSE, WFlags&nbsp;f = 0 )</li>
<li class=fn><a href="#~QTabDialog"><b>~QTabDialog</b></a> ()</li>
<li class=fn>virtual void <a href="#setFont"><b>setFont</b></a> ( const&nbsp;QFont&nbsp;&amp;&nbsp;font )</li>
<li class=fn>void <a href="#addTab"><b>addTab</b></a> ( QWidget&nbsp;*&nbsp;child, const&nbsp;QString&nbsp;&amp;&nbsp;label )</li>
<li class=fn>void <a href="#addTab-2"><b>addTab</b></a> ( QWidget&nbsp;*&nbsp;child, const&nbsp;QIconSet&nbsp;&amp;&nbsp;iconset, const&nbsp;QString&nbsp;&amp;&nbsp;label )</li>
<li class=fn>void <a href="#addTab-3"><b>addTab</b></a> ( QWidget&nbsp;*&nbsp;child, QTab&nbsp;*&nbsp;tab )</li>
<li class=fn>void <a href="#insertTab"><b>insertTab</b></a> ( QWidget&nbsp;*&nbsp;child, const&nbsp;QString&nbsp;&amp;&nbsp;label, int&nbsp;index = -1 )</li>
<li class=fn>void <a href="#insertTab-2"><b>insertTab</b></a> ( QWidget&nbsp;*&nbsp;child, const&nbsp;QIconSet&nbsp;&amp;&nbsp;iconset, const&nbsp;QString&nbsp;&amp;&nbsp;label, int&nbsp;index = -1 )</li>
<li class=fn>void <a href="#insertTab-3"><b>insertTab</b></a> ( QWidget&nbsp;*&nbsp;child, QTab&nbsp;*&nbsp;tab, int&nbsp;index = -1 )</li>
<li class=fn>void <a href="#changeTab-2"><b>changeTab</b></a> ( QWidget&nbsp;*&nbsp;w, const&nbsp;QString&nbsp;&amp;&nbsp;label )</li>
<li class=fn>void <a href="#changeTab"><b>changeTab</b></a> ( QWidget&nbsp;*&nbsp;w, const&nbsp;QIconSet&nbsp;&amp;&nbsp;iconset, const&nbsp;QString&nbsp;&amp;&nbsp;label )</li>
<li class=fn>bool <a href="#isTabEnabled"><b>isTabEnabled</b></a> ( QWidget&nbsp;*&nbsp;w ) const</li>
<li class=fn>void <a href="#setTabEnabled"><b>setTabEnabled</b></a> ( QWidget&nbsp;*&nbsp;w, bool&nbsp;enable )</li>
<li class=fn>bool isTabEnabled ( const&nbsp;char&nbsp;*&nbsp;name ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>void setTabEnabled ( const&nbsp;char&nbsp;*&nbsp;name, bool&nbsp;enable ) &nbsp;<em>(obsolete)</em></li>
<li class=fn>void <a href="#showPage"><b>showPage</b></a> ( QWidget&nbsp;*&nbsp;w )</li>
<li class=fn>void <a href="#removePage"><b>removePage</b></a> ( QWidget&nbsp;*&nbsp;w )</li>
<li class=fn>QString <a href="#tabLabel"><b>tabLabel</b></a> ( QWidget&nbsp;*&nbsp;w )</li>
<li class=fn>QWidget * <a href="#currentPage"><b>currentPage</b></a> () const</li>
<li class=fn>void <a href="#setDefaultButton"><b>setDefaultButton</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;text )</li>
<li class=fn>void <a href="#setDefaultButton-2"><b>setDefaultButton</b></a> ()</li>
<li class=fn>bool <a href="#hasDefaultButton"><b>hasDefaultButton</b></a> () const</li>
<li class=fn>void <a href="#setHelpButton"><b>setHelpButton</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;text )</li>
<li class=fn>void <a href="#setHelpButton-2"><b>setHelpButton</b></a> ()</li>
<li class=fn>bool <a href="#hasHelpButton"><b>hasHelpButton</b></a> () const</li>
<li class=fn>void <a href="#setCancelButton"><b>setCancelButton</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;text )</li>
<li class=fn>void <a href="#setCancelButton-2"><b>setCancelButton</b></a> ()</li>
<li class=fn>bool <a href="#hasCancelButton"><b>hasCancelButton</b></a> () const</li>
<li class=fn>void <a href="#setApplyButton"><b>setApplyButton</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;text )</li>
<li class=fn>void <a href="#setApplyButton-2"><b>setApplyButton</b></a> ()</li>
<li class=fn>bool <a href="#hasApplyButton"><b>hasApplyButton</b></a> () const</li>
<li class=fn>void <a href="#setOkButton"><b>setOkButton</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;text )</li>
<li class=fn>void <a href="#setOkButton-2"><b>setOkButton</b></a> ()</li>
<li class=fn>bool <a href="#hasOkButton"><b>hasOkButton</b></a> () const</li>
</ul>
<h2>Signals</h2>
<ul>
<li class=fn>void <a href="#aboutToShow"><b>aboutToShow</b></a> ()</li>
<li class=fn>void <a href="#applyButtonPressed"><b>applyButtonPressed</b></a> ()</li>
<li class=fn>void <a href="#cancelButtonPressed"><b>cancelButtonPressed</b></a> ()</li>
<li class=fn>void <a href="#defaultButtonPressed"><b>defaultButtonPressed</b></a> ()</li>
<li class=fn>void <a href="#helpButtonPressed"><b>helpButtonPressed</b></a> ()</li>
<li class=fn>void <a href="#currentChanged"><b>currentChanged</b></a> ( QWidget * )</li>
<li class=fn>void selected ( const QString &amp; ) &nbsp;<em>(obsolete)</em></li>
</ul>
<h2>Protected Members</h2>
<ul>
<li class=fn>void <a href="#setTabBar"><b>setTabBar</b></a> ( QTabBar&nbsp;*&nbsp;tb )</li>
<li class=fn>QTabBar * <a href="#tabBar"><b>tabBar</b></a> () const</li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>


<p> The QTabDialog class provides a stack of tabbed widgets.
<p> 

<p> A tabbed dialog is one in which several "tab pages" are available.
By clicking on a tab page's tab or by pressing the indicated
Alt+<em>letter</em> key combination, the user can select which tab page
they want to use.
<p> QTabDialog 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, QTabDialog provides an OK button and the
following optional buttons: Apply, Cancel, Defaults and Help.
<p> The normal way to use QTabDialog is to do the following in the
constructor:
<ol type=1>
<li> Create a QTabDialog.
<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="#addTab">addTab</a>() (or <a href="#insertTab">insertTab</a>()) to set up a tab and keyboard accelerator
for it.
<li> Set up the buttons for the tab dialog using <a href="#setOkButton">setOkButton</a>(),
<a href="#setApplyButton">setApplyButton</a>(), setDefaultsButton(), <a href="#setCancelButton">setCancelButton</a>() and
<a href="#setHelpButton">setHelpButton</a>().
<li> Connect to the signals and slots.
</ol>
<p> If you don't call addTab() the page you have created will not be
visible. Don't confuse the object name you supply to the
QWidget constructor and the tab label you supply to addTab();
addTab() 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> Almost all applications have to connect the <a href="#applyButtonPressed">applyButtonPressed</a>()
signal to something. applyButtonPressed() is emitted when either OK
or Apply is clicked, and your slot must copy the dialog's state into
the application.
<p> There are also several other signals which may be useful:
<ul>
<li> <a href="#cancelButtonPressed">cancelButtonPressed</a>() is emitted when the user clicks Cancel.
<li> <a href="#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> <a href="#helpButtonPressed">helpButtonPressed</a>() is emitted when the user clicks Help.
<li> <a href="#aboutToShow">aboutToShow</a>() is emitted at the start of <a href="qdialog.html#show">show</a>(); 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> <a href="#currentChanged">currentChanged</a>() is emitted when the user selects a page.
</ul>
<p> Each tab is either enabled or disabled at any given time (see
<a href="#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> You can change a tab's label and iconset using <a href="#changeTab">changeTab</a>(). A tab
page can be removed with <a href="#removePage">removePage</a>() and shown with <a href="#showPage">showPage</a>(). The
current page is given by <a href="#currentPage">currentPage</a>().
<p> QTabDialog does not support tabs on the sides or bottom, nor can
you set or retrieve the visible page. If you need more functionality
than QTabDialog provides, consider creating a <a href="qdialog.html">QDialog</a> and using a
<a href="qtabbar.html">QTabBar</a> with QTabWidgets.
<p> Most of the functionality in QTabDialog is provided by a <a href="qtabwidget.html">QTabWidget</a>.
<p> <img src=qtabdlg-m.png> <img src=qtabdlg-w.png>
<p> <p>See also <a href="qdialog.html">QDialog</a> and <a href="dialogs.html">Dialog Classes</a>.

<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="QTabDialog"></a>QTabDialog::QTabDialog ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, bool&nbsp;modal = FALSE, WFlags&nbsp;f = 0 )
</h3>
Constructs a QTabDialog with only an OK button.
The <em>parent</em>, <em>name</em>, <em>modal</em> and <a href="qt.html#WidgetFlags">widget flag</a>, <em>f</em>, arguments
are passed on to the <a href="qdialog.html">QDialog</a> constructor.

<h3 class=fn><a name="~QTabDialog"></a>QTabDialog::~QTabDialog ()
</h3>
Destroys the tab dialog.

<h3 class=fn>void <a name="aboutToShow"></a>QTabDialog::aboutToShow ()<tt> [signal]</tt>
</h3>

<p> This signal is emitted by <a href="qdialog.html#show">show</a>() 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="#QTabDialog">QTabDialog::QTabDialog</a>() and <a href="qdialog.html#show">QTabDialog::show</a>(), you should set the
dialog's state in a slot and connect this signal to it.
<p> This applies mainly to QTabDialog objects that are kept around
hidden, rather than being created, shown, and deleted afterwards.
<p> <p>See also <a href="#applyButtonPressed">applyButtonPressed</a>(), <a href="qdialog.html#show">show</a>(), and <a href="#cancelButtonPressed">cancelButtonPressed</a>().

<h3 class=fn>void <a name="addTab"></a>QTabDialog::addTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;child, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;label )
</h3>
Adds another tab and page to the tab view.
<p> The new page is <em>child</em>; the tab's label is <em>label</em>.
Note the difference between the widget name (which you supply to
widget constructors and to <a href="#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> If the tab's <em>label</em> contains an ampersand, the letter following
the ampersand is used as an accelerator for the tab, e.g. if the
label is "Bro&wse" then Alt+W becomes an accelerator which will
move the focus to this tab.
<p> If you call <a href="#addTab">addTab</a>() after <a href="qdialog.html#show">show</a>() the screen will flicker and the
user may be confused.
<p> <p>See also <a href="#insertTab">insertTab</a>().

<h3 class=fn>void <a name="addTab-2"></a>QTabDialog::addTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;child, const&nbsp;<a href="qiconset.html">QIconSet</a>&nbsp;&amp;&nbsp;iconset, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;label )
</h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> This version of the function shows the <em>iconset</em> as well as the <em>label</em> on the tab of <em>child</em>.

<h3 class=fn>void <a name="addTab-3"></a>QTabDialog::addTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;child, <a href="qtab.html">QTab</a>&nbsp;*&nbsp;tab )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> This is a lower-level method for adding tabs, similar to the other
<a href="#addTab">addTab</a>() method. It is useful if you are using <a href="#setTabBar">setTabBar</a>() to set a
<a href="qtabbar.html">QTabBar</a> subclass with an overridden <a href="qtabbar.html#paint">QTabBar::paint</a>() function for a
subclass of <a href="qtab.html">QTab</a>.
<p> The <em>child</em> is the widget to be placed on the new tab page. The <em>tab</em> is the tab to display on the tab page -- normally this shows a
label or an icon that identifies the tab page.
<p> 
<h3 class=fn>void <a name="applyButtonPressed"></a>QTabDialog::applyButtonPressed ()<tt> [signal]</tt>
</h3>

<p> This signal is emitted when either the Apply or OK button is clicked.
<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>See also <a href="#cancelButtonPressed">cancelButtonPressed</a>(), <a href="#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="#setApplyButton">setApplyButton</a>().

<h3 class=fn>void <a name="cancelButtonPressed"></a>QTabDialog::cancelButtonPressed ()<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> 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>See also <a href="#applyButtonPressed">applyButtonPressed</a>(), <a href="#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="#setCancelButton">setCancelButton</a>().

<h3 class=fn>void <a name="changeTab"></a>QTabDialog::changeTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w, const&nbsp;<a href="qiconset.html">QIconSet</a>&nbsp;&amp;&nbsp;iconset, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;label )
</h3>
Changes tab page <em>w</em>'s iconset to <em>iconset</em> and label to <em>label</em>.
<p> 
<h3 class=fn>void <a name="changeTab-2"></a>QTabDialog::changeTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;label )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Defines a new <em>label</em> for the tab of page <em>w</em>

<h3 class=fn>void <a name="currentChanged"></a>QTabDialog::currentChanged ( <a href="qwidget.html">QWidget</a>&nbsp;* )<tt> [signal]</tt>
</h3> 
<p> This signal is emitted whenever the current page changes.
<p> <p>See also <a href="#currentPage">currentPage</a>(), <a href="#showPage">showPage</a>(), and <a href="#tabLabel">tabLabel</a>().

<h3 class=fn><a href="qwidget.html">QWidget</a>&nbsp;* <a name="currentPage"></a>QTabDialog::currentPage () const
</h3>  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).

<h3 class=fn>void <a name="defaultButtonPressed"></a>QTabDialog::defaultButtonPressed ()<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 "factory
defaults".
<p> The application's state should not be changed until the user clicks
Apply or OK.
<p> <p>See also <a href="#applyButtonPressed">applyButtonPressed</a>(), <a href="#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="#setDefaultButton">setDefaultButton</a>().

<h3 class=fn>bool <a name="hasApplyButton"></a>QTabDialog::hasApplyButton () const
</h3>
Returns TRUE if the tab dialog has an Apply button; otherwise
returns FALSE.
<p> <p>See also <a href="#setApplyButton">setApplyButton</a>(), <a href="#applyButtonPressed">applyButtonPressed</a>(), <a href="#hasCancelButton">hasCancelButton</a>(), and <a href="#hasDefaultButton">hasDefaultButton</a>().

<h3 class=fn>bool <a name="hasCancelButton"></a>QTabDialog::hasCancelButton () const
</h3>
Returns TRUE if the tab dialog has a Cancel button; otherwise
returns FALSE.
<p> <p>See also <a href="#setCancelButton">setCancelButton</a>(), <a href="#cancelButtonPressed">cancelButtonPressed</a>(), <a href="#hasApplyButton">hasApplyButton</a>(), and <a href="#hasDefaultButton">hasDefaultButton</a>().

<h3 class=fn>bool <a name="hasDefaultButton"></a>QTabDialog::hasDefaultButton () const
</h3>
Returns TRUE if the tab dialog has a Defaults button; otherwise
returns FALSE.
<p> <p>See also <a href="#setDefaultButton">setDefaultButton</a>(), <a href="#defaultButtonPressed">defaultButtonPressed</a>(), <a href="#hasApplyButton">hasApplyButton</a>(), and <a href="#hasCancelButton">hasCancelButton</a>().

<h3 class=fn>bool <a name="hasHelpButton"></a>QTabDialog::hasHelpButton () const
</h3>
Returns TRUE if the tab dialog has a Help button; otherwise returns
FALSE.
<p> <p>See also <a href="#setHelpButton">setHelpButton</a>(), <a href="#helpButtonPressed">helpButtonPressed</a>(), <a href="#hasApplyButton">hasApplyButton</a>(), and <a href="#hasCancelButton">hasCancelButton</a>().

<h3 class=fn>bool <a name="hasOkButton"></a>QTabDialog::hasOkButton () const
</h3>
Returns TRUE if the tab dialog has an OK button; otherwise returns
FALSE.
<p> <p>See also <a href="#setOkButton">setOkButton</a>(), <a href="#hasApplyButton">hasApplyButton</a>(), <a href="#hasCancelButton">hasCancelButton</a>(), and <a href="#hasDefaultButton">hasDefaultButton</a>().

<h3 class=fn>void <a name="helpButtonPressed"></a>QTabDialog::helpButtonPressed ()<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>See also <a href="#applyButtonPressed">applyButtonPressed</a>(), <a href="#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="#setHelpButton">setHelpButton</a>().

<h3 class=fn>void <a name="insertTab"></a>QTabDialog::insertTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;child, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;label, int&nbsp;index = -1 )
</h3>
Inserts another tab and page to the tab view.
<p> The new page is <em>child</em>; the tab's label is <em>label</em>.
Note the difference between the widget name (which you supply to
widget constructors and to <a href="#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> If the tab's <em>label</em> contains an ampersand, the letter following
the ampersand is used as an accelerator for the tab, e.g. if the
label is "Bro&wse" then Alt+W becomes an accelerator which will
move the focus to this tab.
<p> If <em>index</em> is not specified, the tab is simply added. Otherwise
it is inserted at the specified position.
<p> If you call <a href="#insertTab">insertTab</a>() after <a href="qdialog.html#show">show</a>(), the screen will flicker and the
user may be confused.
<p> <p>See also <a href="#addTab">addTab</a>().

<h3 class=fn>void <a name="insertTab-2"></a>QTabDialog::insertTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;child, const&nbsp;<a href="qiconset.html">QIconSet</a>&nbsp;&amp;&nbsp;iconset, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;label, int&nbsp;index = -1 )
</h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> This version of the function shows the <em>iconset</em> as well as the <em>label</em> on the tab of <em>child</em>.

<h3 class=fn>void <a name="insertTab-3"></a>QTabDialog::insertTab ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;child, <a href="qtab.html">QTab</a>&nbsp;*&nbsp;tab, int&nbsp;index = -1 )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> This is a lower-level method for inserting tabs, similar to the other
<a href="#insertTab">insertTab</a>() method. It is useful if you are using <a href="#setTabBar">setTabBar</a>() to set a
<a href="qtabbar.html">QTabBar</a> subclass with an overridden <a href="qtabbar.html#paint">QTabBar::paint</a>() function for a
subclass of <a href="qtab.html">QTab</a>.
<p> The <em>child</em> is the widget to be placed on the new tab page. The <em>tab</em> is the tab to display on the tab page -- normally this shows a
label or an icon that identifies the tab page. The <em>index</em> is the
position where this tab page should be inserted.
<p> 
<h3 class=fn>bool <a name="isTabEnabled"></a>QTabDialog::isTabEnabled ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w ) const
</h3>
Returns TRUE if the page <em>w</em> is enabled; otherwise returns FALSE.
<p> <p>See also <a href="#setTabEnabled">setTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::enabled</a>.

<h3 class=fn>bool <a name="isTabEnabled-2"></a>QTabDialog::isTabEnabled ( const&nbsp;char&nbsp;*&nbsp;name ) const
</h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Returns TRUE if the page with object name <em>name</em> is enabled and
FALSE if it is disabled.
<p> If <em>name</em> is 0 or not the name of any of the pages, <a href="#isTabEnabled">isTabEnabled</a>()
returns FALSE.
<p> <p>See also <a href="#setTabEnabled">setTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::enabled</a>.

<h3 class=fn>void <a name="removePage"></a>QTabDialog::removePage ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w )
</h3> Removes page <em>w</em> from this stack of widgets. Does not
delete <em>w</em>.
<p>See also <a href="#showPage">showPage</a>(), <a href="qtabwidget.html#removePage">QTabWidget::removePage</a>(), and <a href="qwidgetstack.html#removeWidget">QWidgetStack::removeWidget</a>().

<h3 class=fn>void <a name="selected"></a>QTabDialog::selected ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; )<tt> [signal]</tt>
</h3>

<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> This signal is emitted whenever a tab is selected (raised),
including during the first <a href="qdialog.html#show">show</a>().
<p> <p>See also <a href="qwidget.html#raise">raise</a>().

<h3 class=fn>void <a name="setApplyButton"></a>QTabDialog::setApplyButton ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text )
</h3>
Adds an Apply button to the dialog. The button's text is set to <em>text</em>.
<p> The Apply button should apply the current settings in the dialog box
to the application while keeping the dialog visible.
<p> When Apply is clicked, the <a href="#applyButtonPressed">applyButtonPressed</a>() signal is emitted.
<p> If <em>text</em> is a
<a href="qstring.html#operator!">null string</a>,
no button is shown.
<p> <p>See also <a href="#setCancelButton">setCancelButton</a>(), <a href="#setDefaultButton">setDefaultButton</a>(), and <a href="#applyButtonPressed">applyButtonPressed</a>().

<h3 class=fn>void <a name="setApplyButton-2"></a>QTabDialog::setApplyButton ()
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Adds an Apply button to the dialog. The button's text is set to
a localizable "Apply".

<h3 class=fn>void <a name="setCancelButton"></a>QTabDialog::setCancelButton ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text )
</h3>
Adds a Cancel button to the dialog. The button's text is set to <em>text</em>.
<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> When Cancel is clicked, the <a href="#cancelButtonPressed">cancelButtonPressed</a>() signal is emitted.
The dialog is closed at the same time.
<p> If <em>text</em> is a
<a href="qstring.html#operator!">null string</a>,
no button is shown.
<p> <p>See also <a href="#setApplyButton">setApplyButton</a>(), <a href="#setDefaultButton">setDefaultButton</a>(), and <a href="#cancelButtonPressed">cancelButtonPressed</a>().

<h3 class=fn>void <a name="setCancelButton-2"></a>QTabDialog::setCancelButton ()
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Adds a Cancel button to the dialog. The button's text is set to
a localizable "Cancel".

<h3 class=fn>void <a name="setDefaultButton"></a>QTabDialog::setDefaultButton ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text )
</h3>
Adds a Defaults button to the dialog. The button's text is set to <em>text</em>.
<p> The Defaults button should set the dialog (but not the application)
back to the application defaults.
<p> When Defaults is clicked, the <a href="#defaultButtonPressed">defaultButtonPressed</a>() signal is emitted.
<p> If <em>text</em> is a
<a href="qstring.html#operator!">null string</a>,
no button is shown.
<p> <p>See also <a href="#setApplyButton">setApplyButton</a>(), <a href="#setCancelButton">setCancelButton</a>(), and <a href="#defaultButtonPressed">defaultButtonPressed</a>().

<h3 class=fn>void <a name="setDefaultButton-2"></a>QTabDialog::setDefaultButton ()
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Adds a Defaults button to the dialog. The button's text is set to
a localizable "Defaults".

<h3 class=fn>void <a name="setFont"></a>QTabDialog::setFont ( const&nbsp;<a href="qfont.html">QFont</a>&nbsp;&amp;&nbsp;font )<tt> [virtual]</tt>
</h3>
Sets the font for the tabs to <em>font</em>.
<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>Reimplemented from <a href="qwidget.html#setFont">QWidget</a>.
<h3 class=fn>void <a name="setHelpButton"></a>QTabDialog::setHelpButton ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text )
</h3>
Adds a Help button to the dialog. The button's text is set to <em>text</em>.
<p> When Help is clicked, the <a href="#helpButtonPressed">helpButtonPressed</a>() signal is emitted.
<p> If <em>text</em> is a
<a href="qstring.html#operator!">null string</a>,
no button is shown.
<p> <p>See also <a href="#setApplyButton">setApplyButton</a>(), <a href="#setCancelButton">setCancelButton</a>(), and <a href="#helpButtonPressed">helpButtonPressed</a>().

<h3 class=fn>void <a name="setHelpButton-2"></a>QTabDialog::setHelpButton ()
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Adds a Help button to the dialog. The button's text is set to
a localizable "Help".

<h3 class=fn>void <a name="setOkButton"></a>QTabDialog::setOkButton ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text )
</h3>
Adds an OK button to the dialog and sets the button's text to <em>text</em>.
<p> When the OK button is clicked, the <a href="#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> If <em>text</em> is a
<a href="qstring.html#operator!">null string</a>,
no button is shown.
<p> <p>See also <a href="#setCancelButton">setCancelButton</a>(), <a href="#setDefaultButton">setDefaultButton</a>(), and <a href="#applyButtonPressed">applyButtonPressed</a>().

<h3 class=fn>void <a name="setOkButton-2"></a>QTabDialog::setOkButton ()
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Adds an OK button to the dialog. The button's text is set to
a localizable "OK".

<h3 class=fn>void <a name="setTabBar"></a>QTabDialog::setTabBar ( <a href="qtabbar.html">QTabBar</a>&nbsp;*&nbsp;tb )<tt> [protected]</tt>
</h3>
Replaces the <a href="qtabbar.html">QTabBar</a> heading the dialog by the given tab bar, <em>tb</em>.
Note that this must be called <em>before</em> any tabs have been added,
or the behavior is undefined.
<p>See also <a href="#tabBar">tabBar</a>().

<h3 class=fn>void <a name="setTabEnabled"></a>QTabDialog::setTabEnabled ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w, bool&nbsp;enable )
</h3>
If <em>enable</em> is TRUE the page <em>w</em> is enabled; otherwise <em>w</em> is
disabled. The page's tab is redrawn appropriately.
<p> <a href="qtabwidget.html">QTabWidget</a> uses <a href="qwidget.html#setEnabled">QWidget::setEnabled</a>() internally, rather than keeping a
separate flag.
<p> Note that even a disabled tab and tab page may be visible. If the
page is already visible QTabWidget will not hide it; if all the
pages are disabled QTabWidget will show one of them.
<p> <p>See also <a href="#isTabEnabled">isTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::enabled</a>.

<h3 class=fn>void <a name="setTabEnabled-2"></a>QTabDialog::setTabEnabled ( const&nbsp;char&nbsp;*&nbsp;name, bool&nbsp;enable )
</h3><b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Finds the page with object name <em>name</em>, enables/disables it
according to the value of <em>enable</em> and redraws the page's tab
appropriately.
<p> QTabDialog uses <a href="qwidget.html#setEnabled">QWidget::setEnabled</a>() internally, rather than keeping a
separate flag.
<p> Note that even a disabled tab/page may be visible. If the page is
already visible QTabDialog will not hide it; if all the pages
are disabled QTabDialog will show one of them.
<p> The object name is used (rather than the tab label) because the tab
text may not be invariant in multi-language applications.
<p> <p>See also <a href="#isTabEnabled">isTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::enabled</a>.

<h3 class=fn>void <a name="showPage"></a>QTabDialog::showPage ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w )
</h3>  Ensures that widget <em>w</em> is shown. This is mainly useful for accelerators.
<p> <b>Warning:</b> If used carelessly, this function can easily surprise or
confuse the user.
<p> <p>See also <a href="qtabbar.html#currentTab-prop">QTabBar::currentTab</a>.

<h3 class=fn><a href="qtabbar.html">QTabBar</a>&nbsp;* <a name="tabBar"></a>QTabDialog::tabBar () const<tt> [protected]</tt>
</h3>
Returns the currently set <a href="qtabbar.html">QTabBar</a>.
<p>See also <a href="#setTabBar">setTabBar</a>().

<h3 class=fn><a href="qstring.html">QString</a> <a name="tabLabel"></a>QTabDialog::tabLabel ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w )
</h3>  Returns the text in the tab for page <em>w</em>.

<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>.
Copyright &copy; 1995-2007
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>Qt 3.3.8</div>
</table></div></address></body>
</html>