<class name="QTabWidget" doc="/** <p>The <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> class provides a stack of tabbed widgets.</p> <p>A tab widget provides a tab bar (see <a href="QTabBar.html"><tt>QTabBar</tt></a>) and a &quot;page area&quot; that is used to display pages related to each tab. By default, the tab bar is shown above the page area, but different configurations are available (see <a href="QTabWidget.html#TabPosition-enum"><tt>TabPosition</tt></a>). Each tab is associated with a different widget (called a page). Only the current page is shown in the page area; all the other pages are hidden. The user can show a different page by clicking on its tab or by pressing its Alt+<i>letter</i> shortcut if it has one.</p> <p>The normal way to use <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> is to do the following:</p> <ol type="1"> <li>Create a <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a>.</li> <li>Create a <a href="QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)"><tt>QWidget</tt></a> for each of the pages in the tab dialog, but do not specify parent widgets for them.</li> <li>Insert child widgets into the page widget, using layouts to position them as normal.</li> <li>Call <a href="QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)"><tt>addTab</tt></a> or <a href="QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)"><tt>insertTab</tt></a> to put the page widgets into the tab widget, giving each tab a suitable label with an optional keyboard shortcut.</li> </ol> <p>The position of the tabs is defined by <a href="QTabWidget.html#tabPosition()"><tt>tabPosition</tt></a>, their shape by <a href="QTabWidget.html#tabShape()"><tt>tabShape</tt></a>.</p> <p>The signal <a href="QTabWidget.html#currentChanged(int)"><tt>currentChanged</tt></a> is emitted when the user selects a page.</p> <p>The current page index is available as <a href="QTabWidget.html#currentIndex()"><tt>currentIndex</tt></a>, the current page widget with <a href="QTabWidget.html#currentWidget()"><tt>currentWidget</tt></a>. You can retrieve a pointer to a page widget with a given index using <a href="QTabWidget.html#widget(int)"><tt>widget</tt></a>, and can find the index position of a widget with <a href="QTabWidget.html#indexOf(com.trolltech.qt.gui.QWidget)"><tt>indexOf</tt></a>. Use <a href="QTabWidget.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)"><tt>setCurrentWidget</tt></a> or <a href="QTabWidget.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> to show a particular page.</p> <p>You can change a tab's text and icon using <a href="QTabWidget.html#setTabText(int, java.lang.String)"><tt>setTabText</tt></a> or <a href="QTabWidget.html#setTabIcon(int, com.trolltech.qt.gui.QIcon)"><tt>setTabIcon</tt></a>. A tab and its associated page can be removed with <a href="QTabWidget.html#removeTab(int)"><tt>removeTab</tt></a>.</p> <p>Each tab is either enabled or disabled at any given time (see <a href="QTabWidget.html#setTabEnabled(int, boolean)"><tt>setTabEnabled</tt></a>). If a tab is enabled, the tab text is drawn normally and the user can select that tab. If it is disabled, the tab is drawn in a different way and the user cannot select that tab. Note that even if a tab is disabled, the page can still be visible, for example if all of the tabs happen to be disabled.</p> <p>Tab widgets can be a very good way to split up a complex dialog. An alternative is to use a <a href="QStackedWidget.html"><tt>QStackedWidget</tt></a> for which you provide some means of navigating between pages, for example, a <a href="QToolBar.html"><tt>QToolBar</tt></a> or a <a href="QListWidget.html"><tt>QListWidget</tt></a>.</p> <p>Most of the functionality in <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> is provided by a <a href="QTabBar.html"><tt>QTabBar</tt></a> (at the top, providing the tabs) and a <a href="QStackedWidget.html"><tt>QStackedWidget</tt></a> (most of the area, organizing the individual pages).</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/windowsxp-tabwidget.png" alt="Screenshot of a Windows XP style tab widget" /></td><td><img src="%2E%2E/images/macintosh-tabwidget.png" alt="Screenshot of a Macintosh style tab widget" /></td><td><img src="%2E%2E/images/plastique-tabwidget.png" alt="Screenshot of a Plastique style tab widget" /></td></tr> <tr valign="top" class="even"><td>A Windows XP style tab widget.</td><td>A Macintosh style tab widget.</td><td>A Plastique style tab widget.</td></tr> </table></p> @see <a href="QTabBar.html"><tt>QTabBar</tt></a> @see <a href="QStackedWidget.html"><tt>QStackedWidget</tt></a> @see <a href="QToolBox.html"><tt>QToolBox</tt></a> @see Tab Dialog Example</tt> */"> <signal name="protected final void currentChanged(int index)" doc="/** <p>This signal is emitted whenever the current page index changes. The parameter is the new current page <tt>index</tt> position.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(int index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTabWidget.html#currentWidget()"><tt>currentWidget</tt></a>, <a href="QTabWidget.html#currentIndex()"><tt>currentIndex</tt></a></dd> </dl> */"/> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <method name="public QTabWidget(com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs a tabbed widget with parent <tt>parent</tt>.</p> */"/> <method name="public QTabWidget()" doc="/** <p>Equivalent to <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a>(0). */"/> <method name="public final int addTab(com.trolltech.qt.gui.QWidget widget, com.trolltech.qt.gui.QIcon icon, java.lang.String label)" doc="/** <p>Adds another tab and page to the tab view.</p> <p>This function is the same as <a href="QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)"><tt>addTab</tt></a>, but with an additional <tt>icon</tt>.</p> */"/> <method name="public final int addTab(com.trolltech.qt.gui.QWidget widget, java.lang.String arg__2)" doc="/** <p>Adds another tab and page to the tab view.</p> <p>The new page is <tt>widget</tt>; the tab's label is <tt>arg__2</tt>.</p> <p>If the tab's <tt>arg__2</tt> contains an ampersand, the letter following the ampersand is used as a shortcut for the tab, e.g&#x2e; if the label is &quot;Bro&amp;wse&quot; then Alt+W becomes a shortcut which will move the focus to this tab.</p> <p>If you call <a href="QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)"><tt>addTab</tt></a> after <a href="QWidget.html#show()"><tt>show</tt></a>, the layout system will try to adjust to the changes in it's widgets hierarchy and may cause flicker. To prevent this, you can set the QWidget::updatesEnabled property to false prior to changes; remember to set the property to true when the changes are done, making the widget receive paint events again.</p> @see <a href="QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)"><tt>insertTab</tt></a> */"/> <method name="public final void clear()" doc="/** <p>Removes all the pages, but does not delete them. Calling this function is equivalent to calling <a href="QTabWidget.html#removeTab(int)"><tt>removeTab</tt></a> until the tab widget is empty.</p> */"/> <method name="public final com.trolltech.qt.gui.QWidget cornerWidget(com.trolltech.qt.core.Qt.Corner corner)" doc="/** <p>Returns the widget shown in the <tt>corner</tt> of the tab widget or 0.</p> @see <a href="QTabWidget.html#setCornerWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.Corner)"><tt>setCornerWidget</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QWidget cornerWidget()" doc="/** <p>Equivalent to <a href="QTabWidget.html#cornerWidget(com.trolltech.qt.core.Qt.Corner)"><tt>cornerWidget</tt></a>(Qt::TopRightCorner). */"/> <method name="public final int count()" doc="/** <p>Returns the number of tabs in the tab bar.</p> */"/> <method name="public final int currentIndex()" doc="/** <p>Returns the index position of the current tab page.</p> @see <a href="QTabWidget.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QWidget currentWidget()" doc="/** <p>Returns a pointer to the page currently being displayed by the tab dialog. The tab dialog does its best to make sure that this value is never 0 (but if you try hard enough, it can be).</p> @see <a href="QTabWidget.html#currentIndex()"><tt>currentIndex</tt></a> @see <a href="QTabWidget.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)"><tt>setCurrentWidget</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.TextElideMode elideMode()" doc="/** <p>Returns 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 dependant.</p> @see <a href="QTabWidget.html#setElideMode(com.trolltech.qt.core.Qt.TextElideMode)"><tt>setElideMode</tt></a> @see <tt>QTabBar::elideMode</tt> @see <a href="QTabWidget.html#usesScrollButtons()"><tt>usesScrollButtons</tt></a> @see <tt>QStyle::SH_TabBar_ElideMode</tt> */"/> <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/** <p>Returns The size for icons in the tab bar.</p> <p>The default value is style-dependent. This is the maximum size that the icons will have. Icons are not scaled up if they are of smaller size.</p> @see <a href="QTabWidget.html#setIconSize(com.trolltech.qt.core.QSize)"><tt>setIconSize</tt></a> @see <tt>QTabBar::iconSize</tt> */"/> <method name="public final int indexOf(com.trolltech.qt.gui.QWidget widget)" doc="/** <p>Returns the index position of the page occupied by the widget <tt>widget</tt>, or -1 if the widget cannot be found.</p> */"/> <method name="public final int insertTab(int index, com.trolltech.qt.gui.QWidget widget, java.lang.String arg__3)" doc="/** <p>Inserts another tab and page to the tab view.</p> <p>The given <tt>widget</tt> is the new page, and the tab's label is specified by <tt>arg__3</tt>. Note the difference between the widget name and the tab label: The name is internal to the program and invariant, whereas the label is shown on-screen and may vary according to language and other factors.</p> <p>If the tab's <tt>arg__3</tt> contains an ampersand, the letter following the ampersand is used as a shortcut for the tab, e.g&#x2e; if the label is &quot;Bro&amp;wse&quot; then Alt+W becomes a shortcut which will move the focus to this tab.</p> <p>If <tt>index</tt> is out of range, the tab is simply appended. Otherwise it is inserted at the specified position.</p> <p>If the <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> was empty before this function is called, the new page becomes the current page. Inserting a new tab at an index less than or equal to the current index will increment the current index, but keep the current page.</p> <p>If you call <a href="QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)"><tt>insertTab</tt></a> after <a href="QWidget.html#show()"><tt>show</tt></a>, the layout system will try to adjust to the changes in it's widgets hierarchy and may cause flicker. To prevent this, you can set the QWidget::updatesEnabled property to false prior to changes; remember to set the property to true when the changes are done, making the widget receive paint events again.</p> @see <a href="QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)"><tt>addTab</tt></a> */"/> <method name="public final int insertTab(int index, com.trolltech.qt.gui.QWidget widget, com.trolltech.qt.gui.QIcon icon, java.lang.String label)" doc="/** <p>Inserts another tab and page to the tab view.</p> <p>This function is the same as <a href="QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)"><tt>insertTab</tt></a>, but with an additional <tt>icon</tt>.</p> */"/> <method name="public final boolean isTabEnabled(int index)" doc="/** <p>Returns true if the the page at position <tt>index</tt> is enabled; otherwise returns false.</p> @see <a href="QTabWidget.html#setTabEnabled(int, boolean)"><tt>setTabEnabled</tt></a> @see <tt>QWidget::isEnabled</tt> */"/> <method name="public final void removeTab(int index)" doc="/** <p>Removes the page at position <tt>index</tt> from this stack of widgets. Does not delete the page widget.</p> */"/> <method name="public final void setCornerWidget(com.trolltech.qt.gui.QWidget w, com.trolltech.qt.core.Qt.Corner corner)" doc="/** <p>Sets the given <tt>w</tt> to be shown in the specified <tt>corner</tt> of the tab widget. The geometry of the widget is determined based on the widget's <a href="QTabWidget.html#sizeHint()"><tt>sizeHint</tt></a> and the <a href="QWidget.html#style()"><tt>style</tt></a>.</p> <p>Only the horizontal element of the <tt>corner</tt> will be used.</p> <p>Passing 0 shows no widget in the corner.</p> <p>Any previously set corner widget is hidden.</p> <p>All widgets set here will be deleted by the tab widget when it is destroyed unless you separately reparent the widget after setting some other corner widget (or 0).</p> <p>Note: Corner widgets are designed for <a href="QTabWidget.html#TabPosition-enum">North</tt></a> and <a href="QTabWidget.html#TabPosition-enum">South</tt></a> tab positions; other orientations are known to not work properly.</p> @see <a href="QTabWidget.html#cornerWidget(com.trolltech.qt.core.Qt.Corner)"><tt>cornerWidget</tt></a> @see <a href="QTabWidget.html#setTabPosition(com.trolltech.qt.gui.QTabWidget.TabPosition)"><tt>setTabPosition</tt></a> */"/> <method name="public final void setCornerWidget(com.trolltech.qt.gui.QWidget w)" doc="/** <p>Equivalent to <a href="QTabWidget.html#setCornerWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.Corner)"><tt>setCornerWidget</tt></a>(<tt>w</tt>, Qt::TopRightCorner). */"/> <method name="public final void setCurrentIndex(int index)" doc="/** <p>Sets the index position of the current tab page to <tt>index</tt>.</p> @see <a href="QTabWidget.html#currentIndex()"><tt>currentIndex</tt></a> */"/> <method name="public final void setCurrentWidget(com.trolltech.qt.gui.QWidget widget)" doc="/** <p>Makes <tt>widget</tt> the current widget. The <tt>widget</tt> used must be a page in this tab widget.</p> @see <a href="QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)"><tt>addTab</tt></a> @see <a href="QTabWidget.html#setCurrentIndex(int)"><tt>setCurrentIndex</tt></a> @see <a href="QTabWidget.html#currentWidget()"><tt>currentWidget</tt></a> */"/> <method name="public final void setElideMode(com.trolltech.qt.core.Qt.TextElideMode arg__1)" doc="/** <p>Sets how to elide text in the tab bar to <tt>arg__1</tt>.</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 dependant.</p> @see <tt>QTabBar::elideMode</tt> @see <a href="QTabWidget.html#usesScrollButtons()"><tt>usesScrollButtons</tt></a> @see <tt>QStyle::SH_TabBar_ElideMode</tt> */"/> <method name="public final void setIconSize(com.trolltech.qt.core.QSize size)" doc="/** <p>Sets The size for icons in the tab bar to <tt>size</tt>.</p> <p>The default value is style-dependent. This is the maximum size that the icons will have. Icons are not scaled up if they are of smaller size.</p> @see <tt>QTabBar::iconSize</tt> */"/> <method name="protected final void setTabBar(com.trolltech.qt.gui.QTabBar arg__1)" doc="/** <p>Replaces the dialog's <a href="QTabBar.html"><tt>QTabBar</tt></a> heading with the tab bar <tt>arg__1</tt>. Note that this must be called <i>before</i> any tabs have been added, or the behavior is undefined.</p> @see <a href="QTabWidget.html#tabBar()"><tt>tabBar</tt></a> */"/> <method name="public final void setTabEnabled(int index, boolean arg__2)" doc="/** <p>If <tt>arg__2</tt> is true, the page at position <tt>index</tt> is enabled; otherwise the page at position <tt>index</tt> is disabled. The page's tab is redrawn appropriately.</p> <p><a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> uses QWidget::setEnabled() internally, rather than keeping a separate flag.</p> <p>Note that even a disabled tab/page may be visible. If the page is visible already, <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> will not hide it; if all the pages are disabled, <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> will show one of them.</p> @see <a href="QTabWidget.html#isTabEnabled(int)"><tt>isTabEnabled</tt></a> @see <tt>QWidget::setEnabled</tt> */"/> <method name="public final void setTabIcon(int index, com.trolltech.qt.gui.QIcon icon)" doc="/** <p>Sets the <tt>icon</tt> for the tab at position <tt>index</tt>.</p> @see <a href="QTabWidget.html#tabIcon(int)"><tt>tabIcon</tt></a> */"/> <method name="public final void setTabPosition(com.trolltech.qt.gui.QTabWidget.TabPosition arg__1)" doc="/** <p>Sets the position of the tabs in this tab widget to <tt>arg__1</tt>.</p> <p>Possible values for this property are described by the <a href="QTabWidget.html#TabPosition-enum"><tt>TabPosition</tt></a> enum.</p> @see <a href="QTabWidget.html#tabPosition()"><tt>tabPosition</tt></a> @see <a href="QTabWidget.html#TabPosition-enum"><tt>TabPosition</tt></a> */"/> <method name="public final void setTabShape(com.trolltech.qt.gui.QTabWidget.TabShape s)" doc="/** <p>Sets the shape of the tabs in this tab widget to <tt>s</tt>.</p> <p>Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.</p> @see <a href="QTabWidget.html#tabShape()"><tt>tabShape</tt></a> @see <a href="QTabWidget.html#TabShape-enum"><tt>TabShape</tt></a> */"/> <method name="public final void setTabText(int index, java.lang.String arg__2)" doc="/** <p>Defines a new <tt>arg__2</tt> for the page at position <tt>index</tt>'s tab.</p> <p>If the provided text contains an ampersand character ('&amp;'), a shortcut is automatically created for it. The character that follows the '&amp;' will be used as the shortcut key. Any previous shortcut will be overwritten, or cleared if no shortcut is defined by the text. See the <a href="QShortcut.html#mnemonic">QShortcut</a> documentation for details (to display an actual ampersand, use '&amp;&amp;').</p> @see <a href="QTabWidget.html#tabText(int)"><tt>tabText</tt></a> */"/> <method name="public final void setTabToolTip(int index, java.lang.String tip)" doc="/** <p>Sets the tab tool tip for the page at position <tt>index</tt> to <tt>tip</tt>.</p> @see <a href="QTabWidget.html#tabToolTip(int)"><tt>tabToolTip</tt></a> */"/> <method name="public final void setTabWhatsThis(int index, java.lang.String text)" doc="/** <p>Sets the What's This help text for the page at position <tt>index</tt> to <tt>text</tt>.</p> @see <a href="QTabWidget.html#tabWhatsThis(int)"><tt>tabWhatsThis</tt></a> */"/> <method name="public final void setUsesScrollButtons(boolean useButtons)" doc="/** <p>Sets Whether or not a tab bar should use buttons to scroll tabs when it has many tabs. to <tt>useButtons</tt>.</p> <p>When there are too many tabs in a tab bar for its size, the tab bar can either choose to expand it's size or to add buttons that allow you to scroll through the tabs.</p> <p>By default the value is style dependant.</p> @see <a href="QTabWidget.html#elideMode()"><tt>elideMode</tt></a> @see <tt>QTabBar::usesScrollButtons</tt> @see <tt>QStyle::SH_TabBar_PreferNoArrows</tt> */"/> <method name="protected final com.trolltech.qt.gui.QTabBar tabBar()" doc="/** <p>Returns the current <a href="QTabBar.html"><tt>QTabBar</tt></a>.</p> @see <a href="QTabWidget.html#setTabBar(com.trolltech.qt.gui.QTabBar)"><tt>setTabBar</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QIcon tabIcon(int index)" doc="/** <p>Returns the icon for the tab on the page at position <tt>index</tt>.</p> @see <a href="QTabWidget.html#setTabIcon(int, com.trolltech.qt.gui.QIcon)"><tt>setTabIcon</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QTabWidget.TabPosition tabPosition()" doc="/** <p>Returns the position of the tabs in this tab widget.</p> <p>Possible values for this property are described by the <a href="QTabWidget.html#TabPosition-enum"><tt>TabPosition</tt></a> enum.</p> @see <a href="QTabWidget.html#setTabPosition(com.trolltech.qt.gui.QTabWidget.TabPosition)"><tt>setTabPosition</tt></a> @see <a href="QTabWidget.html#TabPosition-enum"><tt>TabPosition</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QTabWidget.TabShape tabShape()" doc="/** <p>Returns the shape of the tabs in this tab widget.</p> <p>Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.</p> @see <a href="QTabWidget.html#setTabShape(com.trolltech.qt.gui.QTabWidget.TabShape)"><tt>setTabShape</tt></a> @see <a href="QTabWidget.html#TabShape-enum"><tt>TabShape</tt></a> */"/> <method name="public final java.lang.String tabText(int index)" doc="/** <p>Returns the label text for the tab on the page at position <tt>index</tt>.</p> @see <a href="QTabWidget.html#setTabText(int, java.lang.String)"><tt>setTabText</tt></a> */"/> <method name="public final java.lang.String tabToolTip(int index)" doc="/** <p>Returns the tab tool tip for the page at position <tt>index</tt> or an empty string if no tool tip has been set.</p> @see <a href="QTabWidget.html#setTabToolTip(int, java.lang.String)"><tt>setTabToolTip</tt></a> */"/> <method name="public final java.lang.String tabWhatsThis(int index)" doc="/** <p>Returns the What's This help text for the page at position <tt>index</tt>, or an empty string if no help text has been set.</p> @see <a href="QTabWidget.html#setTabWhatsThis(int, java.lang.String)"><tt>setTabWhatsThis</tt></a> */"/> <method name="public final boolean usesScrollButtons()" doc="/** <p>Returns 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 it's size or to add buttons that allow you to scroll through the tabs.</p> <p>By default the value is style dependant.</p> @see <a href="QTabWidget.html#setUsesScrollButtons(boolean)"><tt>setUsesScrollButtons</tt></a> @see <a href="QTabWidget.html#elideMode()"><tt>elideMode</tt></a> @see <tt>QTabBar::usesScrollButtons</tt> @see <tt>QStyle::SH_TabBar_PreferNoArrows</tt> */"/> <method name="public final com.trolltech.qt.gui.QWidget widget(int index)" doc="/** <p>Returns the tab page at index position <tt>index</tt> or 0 if the <tt>index</tt> is out of range.</p> */"/> <method name="protected void changeEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/** <p>Paints the tab widget's tab bar in response to the paint <tt>arg__1</tt>.</p> */"/> <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void tabInserted(int index)" doc="/** <p>This virtual handler is called after a new tab was added or inserted at position <tt>index</tt>.</p> @see <a href="QTabWidget.html#tabRemoved(int)"><tt>tabRemoved</tt></a> */"/> <method name="protected void tabRemoved(int index)" doc="/** <p>This virtual handler is called after a tab was removed from position <tt>index</tt>.</p> @see <a href="QTabWidget.html#tabInserted(int)"><tt>tabInserted</tt></a> */"/> <enum name="TabShape" doc="/** <p>This enum type defines the shape of the tabs:</p> <p><table border="1" cellpadding="2" cellspacing="1" width="100%"> <tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr> <tr><td valign="top"><tt>Rounded</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The tabs are drawn with a rounded look. This is the default shape.</td></tr> <tr><td valign="top"><tt>Triangular</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The tabs are drawn with a triangular look.</td></tr> </table></p> */"> <enum-value name="Rounded" doc="/** <p>The tabs are drawn with a rounded look. This is the default shape.</p> */"/> <enum-value name="Triangular" doc="/** <p>The tabs are drawn with a triangular look.</p> */"/> </enum> <enum name="TabPosition" doc="/** <p>This enum type defines where <a href="QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)"><tt>QTabWidget</tt></a> draws the tab row:</p> <p><table border="1" cellpadding="2" cellspacing="1" width="100%"> <tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr> <tr><td valign="top"><tt>North</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The tabs are drawn above the pages.</td></tr> <tr><td valign="top"><tt>South</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The tabs are drawn below the pages.</td></tr> <tr><td valign="top"><tt>West</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The tabs are drawn to the left of the pages.</td></tr> <tr><td valign="top"><tt>East</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The tabs are drawn to the right of the pages.</td></tr> </table></p> */"> <enum-value name="North" doc="/** <p>The tabs are drawn above the pages.</p> */"/> <enum-value name="South" doc="/** <p>The tabs are drawn below the pages.</p> */"/> <enum-value name="West" doc="/** <p>The tabs are drawn to the left of the pages.</p> */"/> <enum-value name="East" doc="/** <p>The tabs are drawn to the right of the pages.</p> */"/> </enum> </class>