File: qtabbar.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (658 lines) | stat: -rw-r--r-- 64,746 bytes parent folder | download
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
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
<?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" />
<!-- qtabbar.cpp -->
  <title>Qt 4.8: QTabBar Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <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>QTabBar</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-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</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">QTabBar Class Reference</h1>
<!-- $$$QTabBar-brief -->
<p>The QTabBar class provides a tab bar, e.g&#x2e; for use in tabbed dialogs. <a href="#details">More...</a></p>
<!-- @@@QTabBar -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QTabBar&gt;</span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p>
<ul>
<li><a href="qtabbar-members.html">List of all members, including inherited members</a></li>
<li><a href="qtabbar-qt3.html">Qt 3 support members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#ButtonPosition-enum">ButtonPosition</a></b> { LeftSide, RightSide }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#SelectionBehavior-enum">SelectionBehavior</a></b> { SelectLeftTab, SelectRightTab, SelectPreviousTab }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#Shape-enum">Shape</a></b> { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, ..., TriangularEast }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qtabbar.html#count-prop">count</a></b> : const int</li>
<li class="fn"><b><a href="qtabbar.html#currentIndex-prop">currentIndex</a></b> : int</li>
<li class="fn"><b><a href="qtabbar.html#documentMode-prop">documentMode</a></b> : bool</li>
<li class="fn"><b><a href="qtabbar.html#drawBase-prop">drawBase</a></b> : bool</li>
<li class="fn"><b><a href="qtabbar.html#elideMode-prop">elideMode</a></b> : Qt::TextElideMode</li>
<li class="fn"><b><a href="qtabbar.html#expanding-prop">expanding</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qtabbar.html#iconSize-prop">iconSize</a></b> : QSize</li>
<li class="fn"><b><a href="qtabbar.html#movable-prop">movable</a></b> : bool</li>
<li class="fn"><b><a href="qtabbar.html#selectionBehaviorOnRemove-prop">selectionBehaviorOnRemove</a></b> : SelectionBehavior</li>
<li class="fn"><b><a href="qtabbar.html#shape-prop">shape</a></b> : Shape</li>
<li class="fn"><b><a href="qtabbar.html#tabsClosable-prop">tabsClosable</a></b> : bool</li>
<li class="fn"><b><a href="qtabbar.html#usesScrollButtons-prop">usesScrollButtons</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<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>
</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="qtabbar.html#QTabBar">QTabBar</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#dtor.QTabBar">~QTabBar</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#addTab">addTab</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#addTab-2">addTab</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#count-prop">count</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#currentIndex-prop">currentIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#documentMode-prop">documentMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#drawBase-prop">drawBase</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::TextElideMode </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#elideMode-prop">elideMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#expanding-prop">expanding</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#iconSize-prop">iconSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#insertTab">insertTab</a></b> ( int <i>index</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#insertTab-2">insertTab</a></b> ( int <i>index</i>, const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#movable-prop">isMovable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#isTabEnabled">isTabEnabled</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#moveTab">moveTab</a></b> ( int <i>from</i>, int <i>to</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#removeTab">removeTab</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> SelectionBehavior </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#selectionBehaviorOnRemove-prop">selectionBehaviorOnRemove</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#documentMode-prop">setDocumentMode</a></b> ( bool <i>set</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#drawBase-prop">setDrawBase</a></b> ( bool <i>drawTheBase</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#elideMode-prop">setElideMode</a></b> ( Qt::TextElideMode )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#expanding-prop">setExpanding</a></b> ( bool <i>enabled</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#iconSize-prop">setIconSize</a></b> ( const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#movable-prop">setMovable</a></b> ( bool <i>movable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#selectionBehaviorOnRemove-prop">setSelectionBehaviorOnRemove</a></b> ( SelectionBehavior <i>behavior</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#shape-prop">setShape</a></b> ( Shape <i>shape</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabButton">setTabButton</a></b> ( int <i>index</i>, ButtonPosition <i>position</i>, QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabData">setTabData</a></b> ( int <i>index</i>, const QVariant &amp; <i>data</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabEnabled">setTabEnabled</a></b> ( int <i>index</i>, bool <i>enabled</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabIcon">setTabIcon</a></b> ( int <i>index</i>, const QIcon &amp; <i>icon</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabText">setTabText</a></b> ( int <i>index</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabTextColor">setTabTextColor</a></b> ( int <i>index</i>, const QColor &amp; <i>color</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabToolTip">setTabToolTip</a></b> ( int <i>index</i>, const QString &amp; <i>tip</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#setTabWhatsThis">setTabWhatsThis</a></b> ( int <i>index</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabsClosable-prop">setTabsClosable</a></b> ( bool <i>closable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#usesScrollButtons-prop">setUsesScrollButtons</a></b> ( bool <i>useButtons</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Shape </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#shape-prop">shape</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabAt">tabAt</a></b> ( const QPoint &amp; <i>position</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabButton">tabButton</a></b> ( int <i>index</i>, ButtonPosition <i>position</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabData">tabData</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabIcon">tabIcon</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabRect">tabRect</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabText">tabText</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabTextColor">tabTextColor</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabToolTip">tabToolTip</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabWhatsThis">tabWhatsThis</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabsClosable-prop">tabsClosable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#usesScrollButtons-prop">usesScrollButtons</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<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="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#currentIndex-prop">setCurrentIndex</a></b> ( int <i>index</i> )</td></tr>
</table>
<ul>
<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>
</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="qtabbar.html#currentChanged">currentChanged</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabCloseRequested">tabCloseRequested</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabMoved">tabMoved</a></b> ( int <i>from</i>, int <i>to</i> )</td></tr>
</table>
<ul>
<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="qtabbar.html#initStyleOption">initStyleOption</a></b> ( QStyleOptionTab * <i>option</i>, int <i>tabIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabInserted">tabInserted</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabLayoutChange">tabLayoutChange</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabRemoved">tabRemoved</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#tabSizeHint">tabSizeHint</a></b> ( int <i>index</i> ) 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="qtabbar.html#changeEvent">changeEvent</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#event">event</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#hideEvent">hideEvent</a></b> ( QHideEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#keyPressEvent">keyPressEvent</a></b> ( QKeyEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#mouseMoveEvent">mouseMoveEvent</a></b> ( QMouseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#mousePressEvent">mousePressEvent</a></b> ( QMouseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#mouseReleaseEvent">mouseReleaseEvent</a></b> ( QMouseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#paintEvent">paintEvent</a></b> ( QPaintEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#showEvent">showEvent</a></b> ( QShowEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#wheelEvent">wheelEvent</a></b> ( QWheelEvent * <i>event</i> )</td></tr>
</table>
<ul>
<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">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>
<!-- $$$QTabBar-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QTabBar class provides a tab bar, e.g&#x2e; for use in tabbed dialogs.</p>
<p>QTabBar is straightforward to use; it draws the tabs using one of the predefined <a href="qtabbar.html#Shape-enum">shapes</a>, and emits a signal when a tab is selected. It can be subclassed to tailor the look and feel. Qt also provides a ready-made <a href="qtabwidget.html">QTabWidget</a>.</p>
<p>Each tab has a <a href="qtabbar.html#tabText">tabText</a>(), an optional <a href="qtabbar.html#tabIcon">tabIcon</a>(), an optional <a href="qtabbar.html#tabToolTip">tabToolTip</a>(), optional <a href="qtabbar.html#tabWhatsThis">tabWhatsThis</a>() and optional <a href="qtabbar.html#tabData">tabData</a>(). The tabs's attributes can be changed with <a href="qtabbar.html#setTabText">setTabText</a>(), <a href="qtabbar.html#setTabIcon">setTabIcon</a>(), <a href="qtabbar.html#setTabToolTip">setTabToolTip</a>(), setTabWhatsThis and <a href="qtabbar.html#setTabData">setTabData</a>(). Each tabs can be enabled or disabled individually with <a href="qtabbar.html#setTabEnabled">setTabEnabled</a>().</p>
<p>Each tab can display text in a distinct color. The current text color for a tab can be found with the <a href="qtabbar.html#tabTextColor">tabTextColor</a>() function. Set the text color for a particular tab with <a href="qtabbar.html#setTabTextColor">setTabTextColor</a>().</p>
<p>Tabs are added using <a href="qtabbar.html#addTab">addTab</a>(), or inserted at particular positions using <a href="qtabbar.html#insertTab">insertTab</a>(). The total number of tabs is given by <a href="qtabbar.html#count-prop">count</a>(). Tabs can be removed from the tab bar with <a href="qtabbar.html#removeTab">removeTab</a>(). Combining <a href="qtabbar.html#removeTab">removeTab</a>() and <a href="qtabbar.html#insertTab">insertTab</a>() allows you to move tabs to different positions.</p>
<p>The <a href="qtabbar.html#shape-prop">shape</a> property defines the tabs' appearance. The choice of shape is a matter of taste, although tab dialogs (for preferences and similar) invariably use <a href="qtabbar.html#Shape-enum">RoundedNorth</a>. Tab controls in windows other than dialogs almost always use either <a href="qtabbar.html#Shape-enum">RoundedSouth</a> or <a href="qtabbar.html#Shape-enum">TriangularSouth</a>. Many spreadsheets and other tab controls in which all the pages are essentially similar use <a href="qtabbar.html#Shape-enum">TriangularSouth</a>, whereas <a href="qtabbar.html#Shape-enum">RoundedSouth</a> is used mostly when the pages are different (e.g&#x2e; a multi-page tool palette). The default in QTabBar is <a href="qtabbar.html#Shape-enum">RoundedNorth</a>.</p>
<p>The most important part of QTabBar's API is the <a href="qtabbar.html#currentChanged">currentChanged</a>() signal. This is emitted whenever the current tab changes (even at startup, when the current tab changes from 'none'). There is also a slot, <a href="qtabbar.html#currentIndex-prop">setCurrentIndex</a>(), which can be used to select a tab programmatically. The function <a href="qtabbar.html#currentIndex-prop">currentIndex</a>() returns the index of the current tab, <a href="qtabbar.html#count-prop">count</a> holds the number of tabs.</p>
<p>QTabBar creates automatic mnemonic keys in the manner of <a href="qabstractbutton.html">QAbstractButton</a>; e.g&#x2e; if a tab's label is &quot;&amp;Graphics&quot;, Alt+G becomes a shortcut key for switching to that tab.</p>
<p>The following virtual functions may need to be reimplemented in order to tailor the look and feel or store extra data with each tab:</p>
<ul>
<li><a href="qtabbar.html#tabSizeHint">tabSizeHint</a>() calcuates the size of a tab.</li>
<li><a href="qtabbar.html#tabInserted">tabInserted</a>() notifies that a new tab was added.</li>
<li><a href="qtabbar.html#tabRemoved">tabRemoved</a>() notifies that a tab was removed.</li>
<li><a href="qtabbar.html#tabLayoutChange">tabLayoutChange</a>() notifies that the tabs have been re-laid out.</li>
<li><a href="qtabbar.html#paintEvent">paintEvent</a>() paints all tabs.</li>
</ul>
<p>For subclasses, you might also need the <a href="qtabbar.html#tabRect">tabRect</a>() functions which returns the visual geometry of a single tab.</p>
<table class="generic" width="100%">
 <tr valign="top" class="odd"><td ><img src="images/plastique-tabbar.png" alt="Screenshot of a Plastique style tab bar" /></td><td >A tab bar shown in the Plastique widget style.</td></tr>
<tr valign="top" class="even"><td ><img src="images/plastique-tabbar-truncated.png" alt="Screenshot of a truncated Plastique tab bar" /></td><td >A truncated tab bar shown in the Plastique widget style.</td></tr>
</table>
</div>
<p><b>See also </b><a href="qtabwidget.html">QTabWidget</a>.</p>
<!-- @@@QTabBar -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ButtonPosition$$$LeftSide$$$RightSide -->
<h3 class="fn"><a name="ButtonPosition-enum"></a>enum QTabBar::<span class="name">ButtonPosition</span></h3>
<p>This enum type lists the location of the widget on a tab.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QTabBar::LeftSide</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Left side of the tab.</td></tr>
<tr><td class="topAlign"><tt>QTabBar::RightSide</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Right side of the tab.</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.5.</p>
<!-- @@@ButtonPosition -->
<!-- $$$SelectionBehavior$$$SelectLeftTab$$$SelectRightTab$$$SelectPreviousTab -->
<h3 class="fn"><a name="SelectionBehavior-enum"></a>enum QTabBar::<span class="name">SelectionBehavior</span></h3>
<p>This enum type lists the behavior of <a href="qtabbar.html">QTabBar</a> when a tab is removed and the tab being removed is also the current tab.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QTabBar::SelectLeftTab</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Select the tab to the left of the one being removed.</td></tr>
<tr><td class="topAlign"><tt>QTabBar::SelectRightTab</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Select the tab to the right of the one being removed.</td></tr>
<tr><td class="topAlign"><tt>QTabBar::SelectPreviousTab</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Select the previously selected tab.</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.5.</p>
<!-- @@@SelectionBehavior -->
<!-- $$$Shape$$$RoundedNorth$$$RoundedSouth$$$RoundedWest$$$RoundedEast$$$TriangularNorth$$$TriangularSouth$$$TriangularWest$$$TriangularEast$$$RoundedAbove$$$RoundedBelow$$$TriangularAbove$$$TriangularBelow -->
<h3 class="fn"><a name="Shape-enum"></a>enum QTabBar::<span class="name">Shape</span></h3>
<p>This enum type lists the built-in shapes supported by <a href="qtabbar.html">QTabBar</a>. Treat these as hints as some styles may not render some of the shapes. However, position should be honored.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QTabBar::RoundedNorth</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The normal rounded look above the pages</td></tr>
<tr><td class="topAlign"><tt>QTabBar::RoundedSouth</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The normal rounded look below the pages</td></tr>
<tr><td class="topAlign"><tt>QTabBar::RoundedWest</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The normal rounded look on the left side of the pages</td></tr>
<tr><td class="topAlign"><tt>QTabBar::RoundedEast</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The normal rounded look on the right side the pages</td></tr>
<tr><td class="topAlign"><tt>QTabBar::TriangularNorth</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">Triangular tabs above the pages.</td></tr>
<tr><td class="topAlign"><tt>QTabBar::TriangularSouth</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">Triangular tabs similar to those used in the Excel spreadsheet, for example</td></tr>
<tr><td class="topAlign"><tt>QTabBar::TriangularWest</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">Triangular tabs on the left of the pages.</td></tr>
<tr><td class="topAlign"><tt>QTabBar::TriangularEast</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">Triangular tabs on the right of the pages.</td></tr>
</table>
<!-- @@@Shape -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$count-prop$$$count -->
<h3 class="fn"><a name="count-prop"></a><span class="name">count</span> : const <span class="type">int</span></h3>
<p>This property holds the number of tabs in the tab bar.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>count</b></span> () const</td></tr>
</table>
<!-- @@@count -->
<!-- $$$currentIndex-prop$$$currentIndex$$$setCurrentIndexint$$$currentChangedint -->
<h3 class="fn"><a name="currentIndex-prop"></a><span class="name">currentIndex</span> : <span class="type">int</span></h3>
<p>This property holds the index of the tab bar's visible tab.</p>
<p>The current index is -1 if there is no current tab.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span> ( int <i>index</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qtabbar.html#currentChanged">currentChanged</a></b></span> ( int <i>index</i> )</td></tr>
</table>
<!-- @@@currentIndex -->
<!-- $$$documentMode-prop$$$documentMode$$$setDocumentModebool -->
<h3 class="fn"><a name="documentMode-prop"></a><span class="name">documentMode</span> : <span class="type">bool</span></h3>
<p>This property holds whether or not the tab bar is rendered in a mode suitable for the main window.</p>
<p>This property is used as a hint for styles to draw the tabs in a different way then they would normally look in a tab widget. On Mac OS X this will look similar to the tabs in Safari or Leopard's Terminal.app.</p>
<p>This property was introduced in Qt 4.5.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>documentMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDocumentMode</b></span> ( bool <i>set</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtabwidget.html#documentMode-prop">QTabWidget::documentMode</a>.</p>
<!-- @@@documentMode -->
<!-- $$$drawBase-prop$$$drawBase$$$setDrawBasebool -->
<h3 class="fn"><a name="drawBase-prop"></a><span class="name">drawBase</span> : <span class="type">bool</span></h3>
<p>This property defines whether or not tab bar should draw its base.</p>
<p>If true then <a href="qtabbar.html">QTabBar</a> draws a base in relation to the styles overlab. Otherwise only the tabs are drawn.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>drawBase</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDrawBase</b></span> ( bool <i>drawTheBase</i> )</td></tr>
</table>
<p><b>See also </b><a href="qstyle.html#pixelMetric">QStyle::pixelMetric</a>(), <a href="qstyle.html#PixelMetric-enum">QStyle::PM_TabBarBaseOverlap</a>, and <a href="qstyleoptiontabbarbasev2.html">QStyleOptionTabBarBaseV2</a>.</p>
<!-- @@@drawBase -->
<!-- $$$elideMode-prop$$$elideMode$$$setElideModeQt::TextElideMode -->
<h3 class="fn"><a name="elideMode-prop"></a><span class="name">elideMode</span> : <span class="type"><a href="qt.html#TextElideMode-enum">Qt::TextElideMode</a></span></h3>
<p>This property holds how to elide text in the tab bar.</p>
<p>This property controls how items are elided when there is not enough space to show them for a given tab bar size.</p>
<p>By default the value is style dependent.</p>
<p>This property was introduced in Qt 4.2.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::TextElideMode </td><td class="memItemRight bottomAlign"><span class="name"><b>elideMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setElideMode</b></span> ( Qt::TextElideMode )</td></tr>
</table>
<p><b>See also </b><a href="qtabwidget.html#elideMode-prop">QTabWidget::elideMode</a>, <a href="qtabbar.html#usesScrollButtons-prop">usesScrollButtons</a>, and <a href="qstyle.html#StyleHint-enum">QStyle::SH_TabBar_ElideMode</a>.</p>
<!-- @@@elideMode -->
<!-- $$$expanding-prop$$$expanding$$$setExpandingbool -->
<h3 class="fn"><a name="expanding-prop"></a><span class="name">expanding</span> : <span class="type">bool</span></h3>
<p>This property holds when expanding is true QTabBar will expand the tabs to use the empty space.</p>
<p>By default the value is true.</p>
<p>This property was introduced in Qt 4.5.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>expanding</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setExpanding</b></span> ( bool <i>enabled</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtabwidget.html#documentMode-prop">QTabWidget::documentMode</a>.</p>
<!-- @@@expanding -->
<!-- $$$iconSize-prop$$$iconSize$$$setIconSizeconstQSize& -->
<h3 class="fn"><a name="iconSize-prop"></a><span class="name">iconSize</span> : <span class="type"><a href="qsize.html">QSize</a></span></h3>
<p>This property holds the size for icons in the tab bar.</p>
<p>The default value is style-dependent. <tt>iconSize</tt> is a maximum size; icons that are smaller are not scaled up.</p>
<p>This property was introduced in Qt 4.1.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>iconSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setIconSize</b></span> ( const QSize &amp; <i>size</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtabwidget.html#iconSize-prop">QTabWidget::iconSize</a>.</p>
<!-- @@@iconSize -->
<!-- $$$movable-prop$$$isMovable$$$setMovablebool -->
<h3 class="fn"><a name="movable-prop"></a><span class="name">movable</span> : <span class="type">bool</span></h3>
<p>This property holds this property holds whether the user can move the tabs within the tabbar area.</p>
<p>By default, this property is false;</p>
<p>This property was introduced in Qt 4.5.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isMovable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMovable</b></span> ( bool <i>movable</i> )</td></tr>
</table>
<!-- @@@movable -->
<!-- $$$selectionBehaviorOnRemove-prop$$$selectionBehaviorOnRemove$$$setSelectionBehaviorOnRemoveSelectionBehavior -->
<h3 class="fn"><a name="selectionBehaviorOnRemove-prop"></a><span class="name">selectionBehaviorOnRemove</span> : <span class="type"><a href="qtabbar.html#SelectionBehavior-enum">SelectionBehavior</a></span></h3>
<p>This property holds what tab should be set as current when removeTab is called if the removed tab is also the current tab.</p>
<p>By default the value is <a href="qtabbar.html#SelectionBehavior-enum">SelectRightTab</a>.</p>
<p>This property was introduced in Qt 4.5.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> SelectionBehavior </td><td class="memItemRight bottomAlign"><span class="name"><b>selectionBehaviorOnRemove</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSelectionBehaviorOnRemove</b></span> ( SelectionBehavior <i>behavior</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtabbar.html#removeTab">removeTab</a>().</p>
<!-- @@@selectionBehaviorOnRemove -->
<!-- $$$shape-prop$$$shape$$$setShapeShape -->
<h3 class="fn"><a name="shape-prop"></a><span class="name">shape</span> : <span class="type"><a href="qtabbar.html#Shape-enum">Shape</a></span></h3>
<p>This property holds the shape of the tabs in the tab bar.</p>
<p>Possible values for this property are described by the Shape enum.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Shape </td><td class="memItemRight bottomAlign"><span class="name"><b>shape</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShape</b></span> ( Shape <i>shape</i> )</td></tr>
</table>
<!-- @@@shape -->
<!-- $$$tabsClosable-prop$$$tabsClosable$$$setTabsClosablebool -->
<h3 class="fn"><a name="tabsClosable-prop"></a><span class="name">tabsClosable</span> : <span class="type">bool</span></h3>
<p>This property holds whether or not a tab bar should place close buttons on each tab.</p>
<p>When tabsClosable is set to true a close button will appear on the tab on either the left or right hand side depending upon the style. When the button is clicked the tab the signal tabCloseRequested will be emitted.</p>
<p>By default the value is false.</p>
<p>This property was introduced in Qt 4.5.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>tabsClosable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTabsClosable</b></span> ( bool <i>closable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtabbar.html#setTabButton">setTabButton</a>() and <a href="qtabbar.html#tabRemoved">tabRemoved</a>().</p>
<!-- @@@tabsClosable -->
<!-- $$$usesScrollButtons-prop$$$usesScrollButtons$$$setUsesScrollButtonsbool -->
<h3 class="fn"><a name="usesScrollButtons-prop"></a><span class="name">usesScrollButtons</span> : <span class="type">bool</span></h3>
<p>This property holds whether or not a tab bar should use buttons to scroll tabs when it has many tabs.</p>
<p>When there are too many tabs in a tab bar for its size, the tab bar can either choose to expand its size or to add buttons that allow you to scroll through the tabs.</p>
<p>By default the value is style dependant.</p>
<p>This property was introduced in Qt 4.2.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>usesScrollButtons</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setUsesScrollButtons</b></span> ( bool <i>useButtons</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtabbar.html#elideMode-prop">elideMode</a>, <a href="qtabwidget.html#usesScrollButtons-prop">QTabWidget::usesScrollButtons</a>, and <a href="qstyle.html#StyleHint-enum">QStyle::SH_TabBar_PreferNoArrows</a>.</p>
<!-- @@@usesScrollButtons -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTabBar[overload1]$$$QTabBarQWidget* -->
<h3 class="fn"><a name="QTabBar"></a>QTabBar::<span class="name">QTabBar</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Creates a new tab bar with the given <i>parent</i>.</p>
<!-- @@@QTabBar -->
<!-- $$$~QTabBar[overload1]$$$~QTabBar -->
<h3 class="fn"><a name="dtor.QTabBar"></a>QTabBar::<span class="name">~QTabBar</span> ()</h3>
<p>Destroys the tab bar.</p>
<!-- @@@~QTabBar -->
<!-- $$$addTab[overload1]$$$addTabconstQString& -->
<h3 class="fn"><a name="addTab"></a><span class="type">int</span> QTabBar::<span class="name">addTab</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Adds a new tab with text <i>text</i>. Returns the new tab's index.</p>
<!-- @@@addTab -->
<!-- $$$addTab$$$addTabconstQIcon&constQString& -->
<h3 class="fn"><a name="addTab-2"></a><span class="type">int</span> QTabBar::<span class="name">addTab</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>This is an overloaded function.</p>
<p>Adds a new tab with icon <i>icon</i> and text <i>text</i>. Returns the new tab's index.</p>
<!-- @@@addTab -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn"><a name="changeEvent"></a><span class="type">void</span> QTabBar::<span class="name">changeEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$currentChanged[overload1]$$$currentChangedint -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> QTabBar::<span class="name">currentChanged</span> ( <span class="type">int</span> <i>index</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the tab bar's current tab changes. The new current has the given <i>index</i>, or -1 if there isn't a new one (for example, if there are no tab in the <a href="qtabbar.html">QTabBar</a>)</p>
<!-- @@@currentChanged -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QTabBar::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$hideEvent[overload1]$$$hideEventQHideEvent* -->
<h3 class="fn"><a name="hideEvent"></a><span class="type">void</span> QTabBar::<span class="name">hideEvent</span> ( <span class="type"><a href="qhideevent.html">QHideEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#hideEvent">QWidget::hideEvent</a>().</p>
<!-- @@@hideEvent -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionTab*int -->
<h3 class="fn"><a name="initStyleOption"></a><span class="type">void</span> QTabBar::<span class="name">initStyleOption</span> ( <span class="type"><a href="qstyleoptiontab.html">QStyleOptionTab</a></span> * <i>option</i>, <span class="type">int</span> <i>tabIndex</i> ) const<tt> [protected]</tt></h3>
<p>Initialize <i>option</i> with the values from the tab at <i>tabIndex</i>. This method is useful for subclasses when they need a <a href="qstyleoptiontab.html">QStyleOptionTab</a>, <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a>, or <a href="qstyleoptiontabv3.html">QStyleOptionTabV3</a> but don't want to fill in all the information themselves. This function will check the version of the <a href="qstyleoptiontab.html">QStyleOptionTab</a> and fill in the additional values for a <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a> and <a href="qstyleoptiontabv3.html">QStyleOptionTabV3</a>.</p>
<p><b>See also </b><a href="qstyleoption.html#initFrom">QStyleOption::initFrom</a>() and <a href="qtabwidget.html#initStyleOption">QTabWidget::initStyleOption</a>().</p>
<!-- @@@initStyleOption -->
<!-- $$$insertTab[overload1]$$$insertTabintconstQString& -->
<h3 class="fn"><a name="insertTab"></a><span class="type">int</span> QTabBar::<span class="name">insertTab</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Inserts a new tab with text <i>text</i> at position <i>index</i>. If <i>index</i> is out of range, the new tab is appened. Returns the new tab's index.</p>
<!-- @@@insertTab -->
<!-- $$$insertTab$$$insertTabintconstQIcon&constQString& -->
<h3 class="fn"><a name="insertTab-2"></a><span class="type">int</span> QTabBar::<span class="name">insertTab</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>This is an overloaded function.</p>
<p>Inserts a new tab with icon <i>icon</i> and text <i>text</i> at position <i>index</i>. If <i>index</i> is out of range, the new tab is appended. Returns the new tab's index.</p>
<p>If the <a href="qtabbar.html">QTabBar</a> was empty before this function is called, the inserted tab becomes the current tab.</p>
<p>Inserting a new tab at an index less than or equal to the current index will increment the current index, but keep the current tab.</p>
<!-- @@@insertTab -->
<!-- $$$isTabEnabled[overload1]$$$isTabEnabledint -->
<h3 class="fn"><a name="isTabEnabled"></a><span class="type">bool</span> QTabBar::<span class="name">isTabEnabled</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns true if the tab at position <i>index</i> is enabled; otherwise returns false.</p>
<!-- @@@isTabEnabled -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> QTabBar::<span class="name">keyPressEvent</span> ( <span class="type"><a href="qkeyevent.html">QKeyEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<!-- @@@keyPressEvent -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn"><a name="minimumSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QTabBar::<span class="name">minimumSizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QTabBar::<span class="name">mouseMoveEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget::mouseMoveEvent</a>().</p>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn"><a name="mousePressEvent"></a><span class="type">void</span> QTabBar::<span class="name">mousePressEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget::mousePressEvent</a>().</p>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="mouseReleaseEvent"></a><span class="type">void</span> QTabBar::<span class="name">mouseReleaseEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget::mouseReleaseEvent</a>().</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$moveTab[overload1]$$$moveTabintint -->
<h3 class="fn"><a name="moveTab"></a><span class="type">void</span> QTabBar::<span class="name">moveTab</span> ( <span class="type">int</span> <i>from</i>, <span class="type">int</span> <i>to</i> )</h3>
<p>Moves the item at index position <i>from</i> to index position <i>to</i>.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qtabbar.html#tabMoved">tabMoved</a>() and <a href="qtabbar.html#tabLayoutChange">tabLayoutChange</a>().</p>
<!-- @@@moveTab -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QTabBar::<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 -->
<!-- $$$removeTab[overload1]$$$removeTabint -->
<h3 class="fn"><a name="removeTab"></a><span class="type">void</span> QTabBar::<span class="name">removeTab</span> ( <span class="type">int</span> <i>index</i> )</h3>
<p>Removes the tab at position <i>index</i>.</p>
<p><b>See also </b><a href="qtabbar.html#SelectionBehavior-enum">SelectionBehavior</a>.</p>
<!-- @@@removeTab -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QTabBar::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$setTabButton[overload1]$$$setTabButtonintButtonPositionQWidget* -->
<h3 class="fn"><a name="setTabButton"></a><span class="type">void</span> QTabBar::<span class="name">setTabButton</span> ( <span class="type">int</span> <i>index</i>, <span class="type"><a href="qtabbar.html#ButtonPosition-enum">ButtonPosition</a></span> <i>position</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> )</h3>
<p>Sets <i>widget</i> on the tab <i>index</i>. The widget is placed on the left or right hand side depending upon the <i>position</i>.</p>
<p>Any previously set widget in <i>position</i> is hidden.</p>
<p>The tab bar will take ownership of the widget and so all widgets set here will be deleted by the tab bar when it is destroyed unless you separately reparent the widget after setting some other widget (or 0).</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qtabbar.html#tabButton">tabButton</a>() and <a href="qtabbar.html#tabsClosable-prop">tabsClosable</a>().</p>
<!-- @@@setTabButton -->
<!-- $$$setTabData[overload1]$$$setTabDataintconstQVariant& -->
<h3 class="fn"><a name="setTabData"></a><span class="type">void</span> QTabBar::<span class="name">setTabData</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>data</i> )</h3>
<p>Sets the data of the tab at position <i>index</i> to <i>data</i>.</p>
<p><b>See also </b><a href="qtabbar.html#tabData">tabData</a>().</p>
<!-- @@@setTabData -->
<!-- $$$setTabEnabled[overload1]$$$setTabEnabledintbool -->
<h3 class="fn"><a name="setTabEnabled"></a><span class="type">void</span> QTabBar::<span class="name">setTabEnabled</span> ( <span class="type">int</span> <i>index</i>, <span class="type">bool</span> <i>enabled</i> )</h3>
<p>If <i>enabled</i> is true then the tab at position <i>index</i> is enabled; otherwise the item at position <i>index</i> is disabled.</p>
<p><b>See also </b><a href="qtabbar.html#isTabEnabled">isTabEnabled</a>().</p>
<!-- @@@setTabEnabled -->
<!-- $$$setTabIcon[overload1]$$$setTabIconintconstQIcon& -->
<h3 class="fn"><a name="setTabIcon"></a><span class="type">void</span> QTabBar::<span class="name">setTabIcon</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i> )</h3>
<p>Sets the icon of the tab at position <i>index</i> to <i>icon</i>.</p>
<p><b>See also </b><a href="qtabbar.html#tabIcon">tabIcon</a>().</p>
<!-- @@@setTabIcon -->
<!-- $$$setTabText[overload1]$$$setTabTextintconstQString& -->
<h3 class="fn"><a name="setTabText"></a><span class="type">void</span> QTabBar::<span class="name">setTabText</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Sets the text of the tab at position <i>index</i> to <i>text</i>.</p>
<p><b>See also </b><a href="qtabbar.html#tabText">tabText</a>().</p>
<!-- @@@setTabText -->
<!-- $$$setTabTextColor[overload1]$$$setTabTextColorintconstQColor& -->
<h3 class="fn"><a name="setTabTextColor"></a><span class="type">void</span> QTabBar::<span class="name">setTabTextColor</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qcolor.html">QColor</a></span> &amp; <i>color</i> )</h3>
<p>Sets the color of the text in the tab with the given <i>index</i> to the specified <i>color</i>.</p>
<p>If an invalid color is specified, the tab will use the <a href="qtabbar.html">QTabBar</a> foreground role instead.</p>
<p><b>See also </b><a href="qtabbar.html#tabTextColor">tabTextColor</a>().</p>
<!-- @@@setTabTextColor -->
<!-- $$$setTabToolTip[overload1]$$$setTabToolTipintconstQString& -->
<h3 class="fn"><a name="setTabToolTip"></a><span class="type">void</span> QTabBar::<span class="name">setTabToolTip</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>tip</i> )</h3>
<p>Sets the tool tip of the tab at position <i>index</i> to <i>tip</i>.</p>
<p><b>See also </b><a href="qtabbar.html#tabToolTip">tabToolTip</a>().</p>
<!-- @@@setTabToolTip -->
<!-- $$$setTabWhatsThis[overload1]$$$setTabWhatsThisintconstQString& -->
<h3 class="fn"><a name="setTabWhatsThis"></a><span class="type">void</span> QTabBar::<span class="name">setTabWhatsThis</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Sets the What's This help text of the tab at position <i>index</i> to <i>text</i>.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtabbar.html#tabWhatsThis">tabWhatsThis</a>().</p>
<!-- @@@setTabWhatsThis -->
<!-- $$$showEvent[overload1]$$$showEventQShowEvent* -->
<h3 class="fn"><a name="showEvent"></a><span class="type">void</span> QTabBar::<span class="name">showEvent</span> ( <span class="type"><a href="qshowevent.html">QShowEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QTabBar::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$tabAt[overload1]$$$tabAtconstQPoint& -->
<h3 class="fn"><a name="tabAt"></a><span class="type">int</span> QTabBar::<span class="name">tabAt</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>position</i> ) const</h3>
<p>Returns the index of the tab that covers <i>position</i> or -1 if no tab covers <i>position</i>;</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@tabAt -->
<!-- $$$tabButton[overload1]$$$tabButtonintButtonPosition -->
<h3 class="fn"><a name="tabButton"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QTabBar::<span class="name">tabButton</span> ( <span class="type">int</span> <i>index</i>, <span class="type"><a href="qtabbar.html#ButtonPosition-enum">ButtonPosition</a></span> <i>position</i> ) const</h3>
<p>Returns the widget set a tab <i>index</i> and <i>position</i> or 0 if one is not set.</p>
<p><b>See also </b><a href="qtabbar.html#setTabButton">setTabButton</a>().</p>
<!-- @@@tabButton -->
<!-- $$$tabCloseRequested[overload1]$$$tabCloseRequestedint -->
<h3 class="fn"><a name="tabCloseRequested"></a><span class="type">void</span> QTabBar::<span class="name">tabCloseRequested</span> ( <span class="type">int</span> <i>index</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the close button on a tab is clicked. The <i>index</i> is the index that should be removed.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qtabbar.html#tabsClosable-prop">setTabsClosable</a>().</p>
<!-- @@@tabCloseRequested -->
<!-- $$$tabData[overload1]$$$tabDataint -->
<h3 class="fn"><a name="tabData"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QTabBar::<span class="name">tabData</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the data of the tab at position <i>index</i>, or a null variant if <i>index</i> is out of range.</p>
<p><b>See also </b><a href="qtabbar.html#setTabData">setTabData</a>().</p>
<!-- @@@tabData -->
<!-- $$$tabIcon[overload1]$$$tabIconint -->
<h3 class="fn"><a name="tabIcon"></a><span class="type"><a href="qicon.html">QIcon</a></span> QTabBar::<span class="name">tabIcon</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the icon of the tab at position <i>index</i>, or a null icon if <i>index</i> is out of range.</p>
<p><b>See also </b><a href="qtabbar.html#setTabIcon">setTabIcon</a>().</p>
<!-- @@@tabIcon -->
<!-- $$$tabInserted[overload1]$$$tabInsertedint -->
<h3 class="fn"><a name="tabInserted"></a><span class="type">void</span> QTabBar::<span class="name">tabInserted</span> ( <span class="type">int</span> <i>index</i> )<tt> [virtual protected]</tt></h3>
<p>This virtual handler is called after a new tab was added or inserted at position <i>index</i>.</p>
<p><b>See also </b><a href="qtabbar.html#tabRemoved">tabRemoved</a>().</p>
<!-- @@@tabInserted -->
<!-- $$$tabLayoutChange[overload1]$$$tabLayoutChange -->
<h3 class="fn"><a name="tabLayoutChange"></a><span class="type">void</span> QTabBar::<span class="name">tabLayoutChange</span> ()<tt> [virtual protected]</tt></h3>
<p>This virtual handler is called whenever the tab layout changes.</p>
<p><b>See also </b><a href="qtabbar.html#tabRect">tabRect</a>().</p>
<!-- @@@tabLayoutChange -->
<!-- $$$tabMoved[overload1]$$$tabMovedintint -->
<h3 class="fn"><a name="tabMoved"></a><span class="type">void</span> QTabBar::<span class="name">tabMoved</span> ( <span class="type">int</span> <i>from</i>, <span class="type">int</span> <i>to</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the tab has moved the tab at index position <i>from</i> to index position <i>to</i>.</p>
<p>note: <a href="qtabwidget.html">QTabWidget</a> will automatically move the page when this signal is emitted from its tab bar.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qtabbar.html#moveTab">moveTab</a>().</p>
<!-- @@@tabMoved -->
<!-- $$$tabRect[overload1]$$$tabRectint -->
<h3 class="fn"><a name="tabRect"></a><span class="type"><a href="qrect.html">QRect</a></span> QTabBar::<span class="name">tabRect</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the visual rectangle of the tab at position <i>index</i>, or a null rectangle if <i>index</i> is out of range.</p>
<!-- @@@tabRect -->
<!-- $$$tabRemoved[overload1]$$$tabRemovedint -->
<h3 class="fn"><a name="tabRemoved"></a><span class="type">void</span> QTabBar::<span class="name">tabRemoved</span> ( <span class="type">int</span> <i>index</i> )<tt> [virtual protected]</tt></h3>
<p>This virtual handler is called after a tab was removed from position <i>index</i>.</p>
<p><b>See also </b><a href="qtabbar.html#tabInserted">tabInserted</a>().</p>
<!-- @@@tabRemoved -->
<!-- $$$tabSizeHint[overload1]$$$tabSizeHintint -->
<h3 class="fn"><a name="tabSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QTabBar::<span class="name">tabSizeHint</span> ( <span class="type">int</span> <i>index</i> ) const<tt> [virtual protected]</tt></h3>
<p>Returns the size hint for the tab at position <i>index</i>.</p>
<!-- @@@tabSizeHint -->
<!-- $$$tabText[overload1]$$$tabTextint -->
<h3 class="fn"><a name="tabText"></a><span class="type"><a href="qstring.html">QString</a></span> QTabBar::<span class="name">tabText</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the text of the tab at position <i>index</i>, or an empty string if <i>index</i> is out of range.</p>
<p><b>See also </b><a href="qtabbar.html#setTabText">setTabText</a>().</p>
<!-- @@@tabText -->
<!-- $$$tabTextColor[overload1]$$$tabTextColorint -->
<h3 class="fn"><a name="tabTextColor"></a><span class="type"><a href="qcolor.html">QColor</a></span> QTabBar::<span class="name">tabTextColor</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the text color of the tab with the given <i>index</i>, or a invalid color if <i>index</i> is out of range.</p>
<p><b>See also </b><a href="qtabbar.html#setTabTextColor">setTabTextColor</a>().</p>
<!-- @@@tabTextColor -->
<!-- $$$tabToolTip[overload1]$$$tabToolTipint -->
<h3 class="fn"><a name="tabToolTip"></a><span class="type"><a href="qstring.html">QString</a></span> QTabBar::<span class="name">tabToolTip</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the tool tip of the tab at position <i>index</i>, or an empty string if <i>index</i> is out of range.</p>
<p><b>See also </b><a href="qtabbar.html#setTabToolTip">setTabToolTip</a>().</p>
<!-- @@@tabToolTip -->
<!-- $$$tabWhatsThis[overload1]$$$tabWhatsThisint -->
<h3 class="fn"><a name="tabWhatsThis"></a><span class="type"><a href="qstring.html">QString</a></span> QTabBar::<span class="name">tabWhatsThis</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the What's This help text of the tab at position <i>index</i>, or an empty string if <i>index</i> is out of range.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtabbar.html#setTabWhatsThis">setTabWhatsThis</a>().</p>
<!-- @@@tabWhatsThis -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn"><a name="wheelEvent"></a><span class="type">void</span> QTabBar::<span class="name">wheelEvent</span> ( <span class="type"><a href="qwheelevent.html">QWheelEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#wheelEvent">QWidget::wheelEvent</a>().</p>
<!-- @@@wheelEvent -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation 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>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      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>
</body>
</html>