Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 3585

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtabbar.cpp -->
  <title>QTabBar Class | Qt Widgets 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QTabBar</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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="#reimplemented-public-functions">Reimplemented 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="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QTabBar Class</h1>
<!-- $$$QTabBar-brief -->
<p>The <a href="qtabbar.html">QTabBar</a> class provides a tab bar, e.g&#x2e; for use in tabbed dialogs. <a href="#details">More...</a></p>
<!-- @@@QTabBar -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QTabBar&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qwidget.html">QWidget</a></td></tr></table></div><ul>
<li><a href="qtabbar-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><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></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<div class="table"><table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qtabbar.html#autoHide-prop">autoHide</a></b> : bool</li>
<li class="fn"><b><a href="qtabbar.html#changeCurrentOnDrag-prop">changeCurrentOnDrag</a></b> : bool</li>
<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>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qtabbar.html#expanding-prop">expanding</a></b> : bool</li>
<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></div>
<ul>
<li class="fn">59 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><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> = Q_NULLPTR)</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"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#accessibleTabName">accessibleTabName</a></b>(int <i>index</i>) const</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-1">addTab</a></b>(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#autoHide-prop">autoHide</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#changeCurrentOnDrag-prop">changeCurrentOnDrag</a></b>() const</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-1">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#setAccessibleTabName">setAccessibleTabName</a></b>(int <i>index</i>, const QString &amp;<i>name</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#autoHide-prop">setAutoHide</a></b>(bool <i>hide</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#changeCurrentOnDrag-prop">setChangeCurrentOnDrag</a></b>(bool <i>change</i>)</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>(<i>Qt::TextElideMode</i>)</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></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><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></div>
<ul>
<li class="fn">214 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
<li class="fn">14 public functions inherited from <a href="../qtgui/qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><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></div>
<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="../qtcore/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><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#tabBarClicked">tabBarClicked</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#tabBarDoubleClicked">tabBarDoubleClicked</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></div>
<ul>
<li class="fn">3 signals inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><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 QSize </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#minimumTabSizeHint">minimumTabSizeHint</a></b>(int <i>index</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></div>
<a name="reimplemented-protected-functions"></a>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><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>(<i>QHideEvent *</i>)</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>(<i>QPaintEvent *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#resizeEvent">resizeEvent</a></b>(<i>QResizeEvent *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#showEvent">showEvent</a></b>(<i>QShowEvent *</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtabbar.html#timerEvent">timerEvent</a></b>(QTimerEvent *<i>event</i>)</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></div>
<ul>
<li class="fn">35 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="../qtgui/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">5 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/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>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
<li class="fn">1 protected type inherited from <a href="../qtgui/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTabBar-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qtabbar.html">QTabBar</a> class provides a tab bar, e.g&#x2e; for use in tabbed dialogs.</p>
<p><a href="qtabbar.html">QTabBar</a> 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>(), <a href="qtabbar.html#setTabWhatsThis">setTabWhatsThis</a> 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 <a href="qtabbar.html">QTabBar</a> is <a href="qtabbar.html#Shape-enum">RoundedNorth</a>.</p>
<p>The most important part of <a href="qtabbar.html">QTabBar</a>'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><a href="qtabbar.html">QTabBar</a> 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>
<div class="table"><table class="generic" width="100%">
 <tr valign="top" class="odd"><td ><img src="images/fusion-tabbar.png" alt="Screenshot of a Fusion style tab bar" /></td><td >A tab bar shown in the <a href="gallery.html">Fusion widget style</a>.</td></tr>
<tr valign="top" class="even"><td ><img src="images/fusion-tabbar-truncated.png" alt="Screenshot of a truncated Fusion tab bar" /></td><td >A truncated tab bar shown in the Fusion widget style.</td></tr>
</table></div>
</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" id="ButtonPosition-enum"><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>
<div class="table"><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"><code>QTabBar::LeftSide</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Left side of the tab.</td></tr>
<tr><td class="topAlign"><code>QTabBar::RightSide</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Right side of the tab.</td></tr>
</table></div>
<p>This enum was introduced or modified in  Qt 4.5.</p>
<!-- @@@ButtonPosition -->
<!-- $$$SelectionBehavior$$$SelectLeftTab$$$SelectRightTab$$$SelectPreviousTab -->
<h3 class="fn" id="SelectionBehavior-enum"><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>
<div class="table"><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"><code>QTabBar::SelectLeftTab</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Select the tab to the left of the one being removed.</td></tr>
<tr><td class="topAlign"><code>QTabBar::SelectRightTab</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Select the tab to the right of the one being removed.</td></tr>
<tr><td class="topAlign"><code>QTabBar::SelectPreviousTab</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Select the previously selected tab.</td></tr>
</table></div>
<p>This enum was introduced or modified in  Qt 4.5.</p>
<!-- @@@SelectionBehavior -->
<!-- $$$Shape$$$RoundedNorth$$$RoundedSouth$$$RoundedWest$$$RoundedEast$$$TriangularNorth$$$TriangularSouth$$$TriangularWest$$$TriangularEast -->
<h3 class="fn" id="Shape-enum"><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>
<div class="table"><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"><code>QTabBar::RoundedNorth</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The normal rounded look above the pages</td></tr>
<tr><td class="topAlign"><code>QTabBar::RoundedSouth</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">The normal rounded look below the pages</td></tr>
<tr><td class="topAlign"><code>QTabBar::RoundedWest</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The normal rounded look on the left side of the pages</td></tr>
<tr><td class="topAlign"><code>QTabBar::RoundedEast</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The normal rounded look on the right side the pages</td></tr>
<tr><td class="topAlign"><code>QTabBar::TriangularNorth</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">Triangular tabs above the pages.</td></tr>
<tr><td class="topAlign"><code>QTabBar::TriangularSouth</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">Triangular tabs similar to those used in the Excel spreadsheet, for example</td></tr>
<tr><td class="topAlign"><code>QTabBar::TriangularWest</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">Triangular tabs on the left of the pages.</td></tr>
<tr><td class="topAlign"><code>QTabBar::TriangularEast</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">Triangular tabs on the right of the pages.</td></tr>
</table></div>
<!-- @@@Shape -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$autoHide-prop$$$autoHide$$$setAutoHidebool -->
<h3 class="fn" id="autoHide-prop"><a name="autoHide-prop"></a><span class="name">autoHide</span> : <span class="type">bool</span></h3>
<p>If true, the tab bar is automatically hidden when it contains less than 2 tabs.</p>
<p>By default, this property is false.</p>
<p>This property was introduced in  Qt 5.4.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>autoHide</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAutoHide</b></span>(bool <i>hide</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qwidget.html#visible-prop">QWidget::visible</a>.</p>
<!-- @@@autoHide -->
<!-- $$$changeCurrentOnDrag-prop$$$changeCurrentOnDrag$$$setChangeCurrentOnDragbool -->
<h3 class="fn" id="changeCurrentOnDrag-prop"><a name="changeCurrentOnDrag-prop"></a><span class="name">changeCurrentOnDrag</span> : <span class="type">bool</span></h3>
<p>If true, then the current tab is automatically changed when dragging over the tabbar.</p>
<p><b>Note: </b>You should also set <a href="qwidget.html#acceptDrops-prop">acceptDrops</a> property to true to make this feature work.</p><p>By default, this property is false.</p>
<p>This property was introduced in  Qt 5.4.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>changeCurrentOnDrag</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setChangeCurrentOnDrag</b></span>(bool <i>change</i>)</td></tr>
</table></div>
<!-- @@@changeCurrentOnDrag -->
<!-- $$$count-prop$$$count -->
<h3 class="fn" id="count-prop"><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>
<div class="table"><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></div>
<!-- @@@count -->
<!-- $$$currentIndex-prop$$$currentIndex$$$setCurrentIndexint$$$currentChangedint -->
<h3 class="fn" id="currentIndex-prop"><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>
<div class="table"><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></div>
<p><b>Notifier signal:</b></p>
<div class="table"><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></div>
<!-- @@@currentIndex -->
<!-- $$$documentMode-prop$$$documentMode$$$setDocumentModebool -->
<h3 class="fn" id="documentMode-prop"><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 macOS this will look similar to the tabs in Safari or Sierra's Terminal.app.</p>
<p>This property was introduced in  Qt 4.5.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<p><b>See also </b><a href="qtabwidget.html#documentMode-prop">QTabWidget::documentMode</a>.</p>
<!-- @@@documentMode -->
<!-- $$$drawBase-prop$$$drawBase$$$setDrawBasebool -->
<h3 class="fn" id="drawBase-prop"><a name="drawBase-prop"></a><span class="name">drawBase</span> : <span class="type">bool</span></h3>
<p>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>
<div class="table"><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></div>
<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="qstyleoptiontabbarbase.html">QStyleOptionTabBarBase</a>.</p>
<!-- @@@drawBase -->
<!-- $$$elideMode-prop$$$elideMode$$$setElideModeQt::TextElideMode -->
<h3 class="fn" id="elideMode-prop"><a name="elideMode-prop"></a><span class="name">elideMode</span> : <span class="type"><a href="../qtcore/qt.html#TextElideMode-enum">Qt::TextElideMode</a></span></h3>
<p>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>
<div class="table"><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>(<i>Qt::TextElideMode</i>)</td></tr>
</table></div>
<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" id="expanding-prop"><a name="expanding-prop"></a><span class="name">expanding</span> : <span class="type">bool</span></h3>
<p>When expanding is true <a href="qtabbar.html">QTabBar</a> 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>
<div class="table"><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></div>
<p><b>See also </b><a href="qtabwidget.html#documentMode-prop">QTabWidget::documentMode</a>.</p>
<!-- @@@expanding -->
<!-- $$$iconSize-prop$$$iconSize$$$setIconSizeconstQSize& -->
<h3 class="fn" id="iconSize-prop"><a name="iconSize-prop"></a><span class="name">iconSize</span> : <span class="type"><a href="../qtcore/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. <code>iconSize</code> 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>
<div class="table"><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></div>
<p><b>See also </b><a href="qtabwidget.html#iconSize-prop">QTabWidget::iconSize</a>.</p>
<!-- @@@iconSize -->
<!-- $$$movable-prop$$$isMovable$$$setMovablebool -->
<h3 class="fn" id="movable-prop"><a name="movable-prop"></a><span class="name">movable</span> : <span class="type">bool</span></h3>
<p>This property holds whether the user can move the tabs within the tabbar area.</p>
<p>By default, this property is <code>false</code>;</p>
<p>This property was introduced in  Qt 4.5.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<!-- @@@movable -->
<!-- $$$selectionBehaviorOnRemove-prop$$$selectionBehaviorOnRemove$$$setSelectionBehaviorOnRemoveSelectionBehavior -->
<h3 class="fn" id="selectionBehaviorOnRemove-prop"><a name="selectionBehaviorOnRemove-prop"></a><span class="name">selectionBehaviorOnRemove</span> : <span class="type"><a href="qtabbar.html#SelectionBehavior-enum">SelectionBehavior</a></span></h3>
<p>What tab should be set as current when <a href="qtabbar.html#removeTab">removeTab</a> 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>
<div class="table"><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></div>
<p><b>See also </b><a href="qtabbar.html#removeTab">removeTab</a>().</p>
<!-- @@@selectionBehaviorOnRemove -->
<!-- $$$shape-prop$$$shape$$$setShapeShape -->
<h3 class="fn" id="shape-prop"><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>
<div class="table"><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></div>
<!-- @@@shape -->
<!-- $$$tabsClosable-prop$$$tabsClosable$$$setTabsClosablebool -->
<h3 class="fn" id="tabsClosable-prop"><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 <a href="qtabbar.html#tabCloseRequested">tabCloseRequested</a> 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>
<div class="table"><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></div>
<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" id="usesScrollButtons-prop"><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>
<div class="table"><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></div>
<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" id="QTabBar"><a name="QTabBar"></a>QTabBar::<span class="name">QTabBar</span>(<span class="type"><a href="qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Creates a new tab bar with the given <i>parent</i>.</p>
<!-- @@@QTabBar -->
<!-- $$$~QTabBar[overload1]$$$~QTabBar -->
<h3 class="fn" id="dtor.QTabBar"><a name="dtor.QTabBar"></a>QTabBar::<span class="name">~QTabBar</span>()</h3>
<p>Destroys the tab bar.</p>
<!-- @@@~QTabBar -->
<!-- $$$accessibleTabName[overload1]$$$accessibleTabNameint -->
<h3 class="fn" id="accessibleTabName"><a name="accessibleTabName"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QTabBar::<span class="name">accessibleTabName</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>Returns the <a href="qwidget.html#accessibleName-prop">accessibleName</a> 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#setAccessibleTabName">setAccessibleTabName</a>().</p>
<!-- @@@accessibleTabName -->
<!-- $$$addTab[overload1]$$$addTabconstQString& -->
<h3 class="fn" id="addTab"><a name="addTab"></a><span class="type">int</span> QTabBar::<span class="name">addTab</span>(const <span class="type"><a href="../qtcore/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" id="addTab-1"><a name="addTab-1"></a><span class="type">int</span> QTabBar::<span class="name">addTab</span>(const <span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/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" id="changeEvent"><a name="changeEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">changeEvent</span>(<span class="type"><a href="../qtcore/qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$currentChanged -->
<h3 class="fn" id="currentChanged"><a name="currentChanged"></a><code>[signal] </code><span class="type">void</span> QTabBar::<span class="name">currentChanged</span>(<span class="type">int</span> <i>index</i>)</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>
<p><b>Note:</b> Notifier signal for property <a href="qtabbar.html#currentIndex-prop">currentIndex</a>. </p><!-- @@@currentChanged -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn" id="event"><a name="event"></a><code>[virtual protected] </code><span class="type">bool</span> QTabBar::<span class="name">event</span>(<span class="type"><a href="../qtcore/qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="../qtcore/qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$hideEvent[overload1]$$$hideEventQHideEvent* -->
<h3 class="fn" id="hideEvent"><a name="hideEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">hideEvent</span>(<i>QHideEvent *</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#hideEvent">QWidget::hideEvent</a>().</p>
<!-- @@@hideEvent -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionTab*int -->
<h3 class="fn" id="initStyleOption"><a name="initStyleOption"></a><code>[protected] </code><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</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>, but don't want to fill in all the information themselves.</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" id="insertTab"><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="../qtcore/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" id="insertTab-1"><a name="insertTab-1"></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="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/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" id="isTabEnabled"><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 <code>true</code> if the tab at position <i>index</i> is enabled; otherwise returns <code>false</code>.</p>
<!-- @@@isTabEnabled -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn" id="keyPressEvent"><a name="keyPressEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">keyPressEvent</span>(<span class="type"><a href="../qtgui/qkeyevent.html">QKeyEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<!-- @@@keyPressEvent -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn" id="minimumSizeHint"><a name="minimumSizeHint"></a><code>[virtual] </code><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QTabBar::<span class="name">minimumSizeHint</span>() const</h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$minimumTabSizeHint[overload1]$$$minimumTabSizeHintint -->
<h3 class="fn" id="minimumTabSizeHint"><a name="minimumTabSizeHint"></a><code>[virtual protected] </code><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QTabBar::<span class="name">minimumTabSizeHint</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>Returns the minimum tab size hint for the tab at position <i>index</i>.</p>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@minimumTabSizeHint -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn" id="mouseMoveEvent"><a name="mouseMoveEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">mouseMoveEvent</span>(<span class="type"><a href="../qtgui/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget::mouseMoveEvent</a>().</p>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn" id="mousePressEvent"><a name="mousePressEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">mousePressEvent</span>(<span class="type"><a href="../qtgui/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget::mousePressEvent</a>().</p>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn" id="mouseReleaseEvent"><a name="mouseReleaseEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">mouseReleaseEvent</span>(<span class="type"><a href="../qtgui/qmouseevent.html">QMouseEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget::mouseReleaseEvent</a>().</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$moveTab[overload1]$$$moveTabintint -->
<h3 class="fn" id="moveTab"><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" id="paintEvent"><a name="paintEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">paintEvent</span>(<i>QPaintEvent *</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$removeTab[overload1]$$$removeTabint -->
<h3 class="fn" id="removeTab"><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" id="resizeEvent"><a name="resizeEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">resizeEvent</span>(<i>QResizeEvent *</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$setAccessibleTabName[overload1]$$$setAccessibleTabNameintconstQString& -->
<h3 class="fn" id="setAccessibleTabName"><a name="setAccessibleTabName"></a><span class="type">void</span> QTabBar::<span class="name">setAccessibleTabName</span>(<span class="type">int</span> <i>index</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>name</i>)</h3>
<p>Sets the <a href="qwidget.html#accessibleName-prop">accessibleName</a> of the tab at position <i>index</i> to <i>name</i>.</p>
<p><b>See also </b><a href="qtabbar.html#accessibleTabName">accessibleTabName</a>().</p>
<!-- @@@setAccessibleTabName -->
<!-- $$$setTabButton[overload1]$$$setTabButtonintButtonPositionQWidget* -->
<h3 class="fn" id="setTabButton"><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">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" id="setTabData"><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="../qtcore/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" id="setTabEnabled"><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" id="setTabIcon"><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="../qtgui/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" id="setTabText"><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="../qtcore/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" id="setTabTextColor"><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="../qtgui/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" id="setTabToolTip"><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="../qtcore/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" id="setTabWhatsThis"><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="../qtcore/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" id="showEvent"><a name="showEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">showEvent</span>(<i>QShowEvent *</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn" id="sizeHint"><a name="sizeHint"></a><code>[virtual] </code><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QTabBar::<span class="name">sizeHint</span>() const</h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$tabAt[overload1]$$$tabAtconstQPoint& -->
<h3 class="fn" id="tabAt"><a name="tabAt"></a><span class="type">int</span> QTabBar::<span class="name">tabAt</span>(const <span class="type"><a href="../qtcore/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 -->
<!-- $$$tabBarClicked[overload1]$$$tabBarClickedint -->
<h3 class="fn" id="tabBarClicked"><a name="tabBarClicked"></a><code>[signal] </code><span class="type">void</span> QTabBar::<span class="name">tabBarClicked</span>(<span class="type">int</span> <i>index</i>)</h3>
<p>This signal is emitted when user clicks on a tab at an <i>index</i>.</p>
<p><i>index</i> is the index of a clicked tab, or -1 if no tab is under the cursor.</p>
<p>This function was introduced in  Qt 5.2.</p>
<!-- @@@tabBarClicked -->
<!-- $$$tabBarDoubleClicked[overload1]$$$tabBarDoubleClickedint -->
<h3 class="fn" id="tabBarDoubleClicked"><a name="tabBarDoubleClicked"></a><code>[signal] </code><span class="type">void</span> QTabBar::<span class="name">tabBarDoubleClicked</span>(<span class="type">int</span> <i>index</i>)</h3>
<p>This signal is emitted when the user double clicks on a tab at <i>index</i>.</p>
<p><i>index</i> refers to the tab clicked, or -1 if no tab is under the cursor.</p>
<p>This function was introduced in  Qt 5.2.</p>
<!-- @@@tabBarDoubleClicked -->
<!-- $$$tabButton[overload1]$$$tabButtonintButtonPosition -->
<h3 class="fn" id="tabButton"><a name="tabButton"></a><span class="type"><a href="qwidget.html#QWidget">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" id="tabCloseRequested"><a name="tabCloseRequested"></a><code>[signal] </code><span class="type">void</span> QTabBar::<span class="name">tabCloseRequested</span>(<span class="type">int</span> <i>index</i>)</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" id="tabData"><a name="tabData"></a><span class="type"><a href="../qtcore/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" id="tabIcon"><a name="tabIcon"></a><span class="type"><a href="../qtgui/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" id="tabInserted"><a name="tabInserted"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">tabInserted</span>(<span class="type">int</span> <i>index</i>)</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" id="tabLayoutChange"><a name="tabLayoutChange"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">tabLayoutChange</span>()</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" id="tabMoved"><a name="tabMoved"></a><code>[signal] </code><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>)</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" id="tabRect"><a name="tabRect"></a><span class="type"><a href="../qtcore/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" id="tabRemoved"><a name="tabRemoved"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">tabRemoved</span>(<span class="type">int</span> <i>index</i>)</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" id="tabSizeHint"><a name="tabSizeHint"></a><code>[virtual protected] </code><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QTabBar::<span class="name">tabSizeHint</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>Returns the size hint for the tab at position <i>index</i>.</p>
<!-- @@@tabSizeHint -->
<!-- $$$tabText[overload1]$$$tabTextint -->
<h3 class="fn" id="tabText"><a name="tabText"></a><span class="type"><a href="../qtcore/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" id="tabTextColor"><a name="tabTextColor"></a><span class="type"><a href="../qtgui/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" id="tabToolTip"><a name="tabToolTip"></a><span class="type"><a href="../qtcore/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" id="tabWhatsThis"><a name="tabWhatsThis"></a><span class="type"><a href="../qtcore/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 -->
<!-- $$$timerEvent[overload1]$$$timerEventQTimerEvent* -->
<h3 class="fn" id="timerEvent"><a name="timerEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">timerEvent</span>(<span class="type"><a href="../qtcore/qtimerevent.html">QTimerEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="../qtcore/qobject.html#timerEvent">QObject::timerEvent</a>().</p>
<!-- @@@timerEvent -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn" id="wheelEvent"><a name="wheelEvent"></a><code>[virtual protected] </code><span class="type">void</span> QTabBar::<span class="name">wheelEvent</span>(<span class="type"><a href="../qtgui/qwheelevent.html">QWheelEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#wheelEvent">QWidget::wheelEvent</a>().</p>
<!-- @@@wheelEvent -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    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.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>