Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2292

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QTabWidget" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; class provides a stack of tabbed widgets.&lt;/p&gt;
&lt;p&gt;A tab widget provides a tab bar (see &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt;) and a &amp;quot;page area&amp;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 &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;&lt;tt&gt;TabPosition&lt;/tt&gt;&lt;/a&gt;). 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+&lt;i&gt;letter&lt;/i&gt; shortcut if it has one.&lt;/p&gt;
&lt;p&gt;The normal way to use &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; is to do the following:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;Create a &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Create a &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; for each of the pages in the tab dialog, but do not specify parent widgets for them.&lt;/li&gt;
&lt;li&gt;Insert child widgets into the page widget, using layouts to position them as normal.&lt;/li&gt;
&lt;li&gt;Call &lt;a href=&quot;QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)&quot;&gt;&lt;tt&gt;addTab&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)&quot;&gt;&lt;tt&gt;insertTab&lt;/tt&gt;&lt;/a&gt; to put the page widgets into the tab widget, giving each tab a suitable label with an optional keyboard shortcut.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The position of the tabs is defined by &lt;a href=&quot;QTabWidget.html#tabPosition()&quot;&gt;&lt;tt&gt;tabPosition&lt;/tt&gt;&lt;/a&gt;, their shape by &lt;a href=&quot;QTabWidget.html#tabShape()&quot;&gt;&lt;tt&gt;tabShape&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The signal &lt;a href=&quot;QTabWidget.html#currentChanged(int)&quot;&gt;&lt;tt&gt;currentChanged&lt;/tt&gt;&lt;/a&gt; is emitted when the user selects a page.&lt;/p&gt;
&lt;p&gt;The current page index is available as &lt;a href=&quot;QTabWidget.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt;, the current page widget with &lt;a href=&quot;QTabWidget.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt;. You can retrieve a pointer to a page widget with a given index using &lt;a href=&quot;QTabWidget.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;, and can find the index position of a widget with &lt;a href=&quot;QTabWidget.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;. Use &lt;a href=&quot;QTabWidget.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTabWidget.html#setCurrentIndex(int)&quot;&gt;&lt;tt&gt;setCurrentIndex&lt;/tt&gt;&lt;/a&gt; to show a particular page.&lt;/p&gt;
&lt;p&gt;You can change a tab's text and icon using &lt;a href=&quot;QTabWidget.html#setTabText(int, java.lang.String)&quot;&gt;&lt;tt&gt;setTabText&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTabWidget.html#setTabIcon(int, com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setTabIcon&lt;/tt&gt;&lt;/a&gt;. A tab and its associated page can be removed with &lt;a href=&quot;QTabWidget.html#removeTab(int)&quot;&gt;&lt;tt&gt;removeTab&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Each tab is either enabled or disabled at any given time (see &lt;a href=&quot;QTabWidget.html#setTabEnabled(int, boolean)&quot;&gt;&lt;tt&gt;setTabEnabled&lt;/tt&gt;&lt;/a&gt;). 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.&lt;/p&gt;
&lt;p&gt;Tab widgets can be a very good way to split up a complex dialog. An alternative is to use a &lt;a href=&quot;QStackedWidget.html&quot;&gt;&lt;tt&gt;QStackedWidget&lt;/tt&gt;&lt;/a&gt; for which you provide some means of navigating between pages, for example, a &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt; or a &lt;a href=&quot;QListWidget.html&quot;&gt;&lt;tt&gt;QListWidget&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Most of the functionality in &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; is provided by a &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt; (at the top, providing the tabs) and a &lt;a href=&quot;QStackedWidget.html&quot;&gt;&lt;tt&gt;QStackedWidget&lt;/tt&gt;&lt;/a&gt; (most of the area, organizing the individual pages).&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/windowsxp-tabwidget.png&quot; alt=&quot;Screenshot of a Windows XP style tab widget&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/macintosh-tabwidget.png&quot; alt=&quot;Screenshot of a Macintosh style tab widget&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/plastique-tabwidget.png&quot; alt=&quot;Screenshot of a Plastique style tab widget&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;A Windows XP style tab widget.&lt;/td&gt;&lt;td&gt;A Macintosh style tab widget.&lt;/td&gt;&lt;td&gt;A Plastique style tab widget.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedWidget.html&quot;&gt;&lt;tt&gt;QStackedWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QToolBox.html&quot;&gt;&lt;tt&gt;QToolBox&lt;/tt&gt;&lt;/a&gt;
@see Tab Dialog Example&lt;/tt&gt; */">
    <signal name="protected final void currentChanged(int index)" doc="/**
&lt;p&gt;This signal is emitted whenever the current page index changes. The parameter is the new current page &lt;tt&gt;index&lt;/tt&gt; position.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int index)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QTabWidget.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTabWidget.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QTabWidget(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a tabbed widget with parent &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTabWidget()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final int addTab(com.trolltech.qt.gui.QWidget widget, com.trolltech.qt.gui.QIcon icon, java.lang.String label)" doc="/**
&lt;p&gt;Adds another tab and page to the tab view.&lt;/p&gt;
&lt;p&gt;This function is the same as &lt;a href=&quot;QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)&quot;&gt;&lt;tt&gt;addTab&lt;/tt&gt;&lt;/a&gt;, but with an additional &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final int addTab(com.trolltech.qt.gui.QWidget widget, java.lang.String arg__2)" doc="/**
&lt;p&gt;Adds another tab and page to the tab view.&lt;/p&gt;
&lt;p&gt;The new page is &lt;tt&gt;widget&lt;/tt&gt;; the tab's label is &lt;tt&gt;arg__2&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the tab's &lt;tt&gt;arg__2&lt;/tt&gt; contains an ampersand, the letter following the ampersand is used as a shortcut for the tab, e.g&amp;#x2e; if the label is &amp;quot;Bro&amp;amp;wse&amp;quot; then Alt+W becomes a shortcut which will move the focus to this tab.&lt;/p&gt;
&lt;p&gt;If you call &lt;a href=&quot;QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)&quot;&gt;&lt;tt&gt;addTab&lt;/tt&gt;&lt;/a&gt; after &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;, 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.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)&quot;&gt;&lt;tt&gt;insertTab&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Removes all the pages, but does not delete them. Calling this function is equivalent to calling &lt;a href=&quot;QTabWidget.html#removeTab(int)&quot;&gt;&lt;tt&gt;removeTab&lt;/tt&gt;&lt;/a&gt; until the tab widget is empty.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QWidget cornerWidget(com.trolltech.qt.core.Qt.Corner corner)" doc="/**
&lt;p&gt;Returns the widget shown in the &lt;tt&gt;corner&lt;/tt&gt; of the tab widget or 0.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setCornerWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.Corner)&quot;&gt;&lt;tt&gt;setCornerWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget cornerWidget()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTabWidget.html#cornerWidget(com.trolltech.qt.core.Qt.Corner)&quot;&gt;&lt;tt&gt;cornerWidget&lt;/tt&gt;&lt;/a&gt;(Qt::TopRightCorner). */"/>
    <method name="public final int count()" doc="/**
&lt;p&gt;Returns the number of tabs in the tab bar.&lt;/p&gt;
 */"/>
    <method name="public final int currentIndex()" doc="/**
&lt;p&gt;Returns the index position of the current tab page.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setCurrentIndex(int)&quot;&gt;&lt;tt&gt;setCurrentIndex&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget currentWidget()" doc="/**
&lt;p&gt;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).&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.TextElideMode elideMode()" doc="/**
&lt;p&gt;Returns how to elide text in the tab bar.&lt;/p&gt;
&lt;p&gt;This property controls how items are elided when there is not enough space to show them for a given tab bar size.&lt;/p&gt;
&lt;p&gt;By default the value is style dependant.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setElideMode(com.trolltech.qt.core.Qt.TextElideMode)&quot;&gt;&lt;tt&gt;setElideMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::elideMode&lt;/tt&gt;
@see &lt;a href=&quot;QTabWidget.html#usesScrollButtons()&quot;&gt;&lt;tt&gt;usesScrollButtons&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QStyle::SH_TabBar_ElideMode&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/**
&lt;p&gt;Returns The size for icons in the tab bar.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setIconSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setIconSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::iconSize&lt;/tt&gt; */"/>
    <method name="public final int indexOf(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Returns the index position of the page occupied by the widget &lt;tt&gt;widget&lt;/tt&gt;, or -1 if the widget cannot be found.&lt;/p&gt;
 */"/>
    <method name="public final int insertTab(int index, com.trolltech.qt.gui.QWidget widget, java.lang.String arg__3)" doc="/**
&lt;p&gt;Inserts another tab and page to the tab view.&lt;/p&gt;
&lt;p&gt;The given &lt;tt&gt;widget&lt;/tt&gt; is the new page, and the tab's label is specified by &lt;tt&gt;arg__3&lt;/tt&gt;. 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.&lt;/p&gt;
&lt;p&gt;If the tab's &lt;tt&gt;arg__3&lt;/tt&gt; contains an ampersand, the letter following the ampersand is used as a shortcut for the tab, e.g&amp;#x2e; if the label is &amp;quot;Bro&amp;amp;wse&amp;quot; then Alt+W becomes a shortcut which will move the focus to this tab.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;index&lt;/tt&gt; is out of range, the tab is simply appended. Otherwise it is inserted at the specified position.&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;If you call &lt;a href=&quot;QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)&quot;&gt;&lt;tt&gt;insertTab&lt;/tt&gt;&lt;/a&gt; after &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;, 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.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)&quot;&gt;&lt;tt&gt;addTab&lt;/tt&gt;&lt;/a&gt; */"/>
    <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="/**
&lt;p&gt;Inserts another tab and page to the tab view.&lt;/p&gt;
&lt;p&gt;This function is the same as &lt;a href=&quot;QTabWidget.html#insertTab(int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QIcon, java.lang.String)&quot;&gt;&lt;tt&gt;insertTab&lt;/tt&gt;&lt;/a&gt;, but with an additional &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isTabEnabled(int index)" doc="/**
&lt;p&gt;Returns true if the the page at position &lt;tt&gt;index&lt;/tt&gt; is enabled; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabEnabled(int, boolean)&quot;&gt;&lt;tt&gt;setTabEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::isEnabled&lt;/tt&gt; */"/>
    <method name="public final void removeTab(int index)" doc="/**
&lt;p&gt;Removes the page at position &lt;tt&gt;index&lt;/tt&gt; from this stack of widgets. Does not delete the page widget.&lt;/p&gt;
 */"/>
    <method name="public final void setCornerWidget(com.trolltech.qt.gui.QWidget w, com.trolltech.qt.core.Qt.Corner corner)" doc="/**
&lt;p&gt;Sets the given &lt;tt&gt;w&lt;/tt&gt; to be shown in the specified &lt;tt&gt;corner&lt;/tt&gt; of the tab widget. The geometry of the widget is determined based on the widget's &lt;a href=&quot;QTabWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; and the &lt;a href=&quot;QWidget.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Only the horizontal element of the &lt;tt&gt;corner&lt;/tt&gt; will be used.&lt;/p&gt;
&lt;p&gt;Passing 0 shows no widget in the corner.&lt;/p&gt;
&lt;p&gt;Any previously set corner widget is hidden.&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;Note: Corner widgets are designed for &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;North&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;South&lt;/tt&gt;&lt;/a&gt; tab positions; other orientations are known to not work properly.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#cornerWidget(com.trolltech.qt.core.Qt.Corner)&quot;&gt;&lt;tt&gt;cornerWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#setTabPosition(com.trolltech.qt.gui.QTabWidget.TabPosition)&quot;&gt;&lt;tt&gt;setTabPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCornerWidget(com.trolltech.qt.gui.QWidget w)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTabWidget.html#setCornerWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.Corner)&quot;&gt;&lt;tt&gt;setCornerWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, Qt::TopRightCorner). */"/>
    <method name="public final void setCurrentIndex(int index)" doc="/**
&lt;p&gt;Sets the index position of the current tab page to &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCurrentWidget(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Makes &lt;tt&gt;widget&lt;/tt&gt; the current widget. The &lt;tt&gt;widget&lt;/tt&gt; used must be a page in this tab widget.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#addTab(com.trolltech.qt.gui.QWidget, java.lang.String)&quot;&gt;&lt;tt&gt;addTab&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#setCurrentIndex(int)&quot;&gt;&lt;tt&gt;setCurrentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setElideMode(com.trolltech.qt.core.Qt.TextElideMode arg__1)" doc="/**
&lt;p&gt;Sets how to elide text in the tab bar to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property controls how items are elided when there is not enough space to show them for a given tab bar size.&lt;/p&gt;
&lt;p&gt;By default the value is style dependant.&lt;/p&gt;

@see &lt;tt&gt;QTabBar::elideMode&lt;/tt&gt;
@see &lt;a href=&quot;QTabWidget.html#usesScrollButtons()&quot;&gt;&lt;tt&gt;usesScrollButtons&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QStyle::SH_TabBar_ElideMode&lt;/tt&gt; */"/>
    <method name="public final void setIconSize(com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Sets The size for icons in the tab bar to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;

@see &lt;tt&gt;QTabBar::iconSize&lt;/tt&gt; */"/>
    <method name="protected final void setTabBar(com.trolltech.qt.gui.QTabBar arg__1)" doc="/**
&lt;p&gt;Replaces the dialog's &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt; heading with the tab bar &lt;tt&gt;arg__1&lt;/tt&gt;. Note that this must be called &lt;i&gt;before&lt;/i&gt; any tabs have been added, or the behavior is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabBar()&quot;&gt;&lt;tt&gt;tabBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabEnabled(int index, boolean arg__2)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__2&lt;/tt&gt; is true, the page at position &lt;tt&gt;index&lt;/tt&gt; is enabled; otherwise the page at position &lt;tt&gt;index&lt;/tt&gt; is disabled. The page's tab is redrawn appropriately.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; uses QWidget::setEnabled() internally, rather than keeping a separate flag.&lt;/p&gt;
&lt;p&gt;Note that even a disabled tab/page may be visible. If the page is visible already, &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; will not hide it; if all the pages are disabled, &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; will show one of them.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#isTabEnabled(int)&quot;&gt;&lt;tt&gt;isTabEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setEnabled&lt;/tt&gt; */"/>
    <method name="public final void setTabIcon(int index, com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the &lt;tt&gt;icon&lt;/tt&gt; for the tab at position &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabIcon(int)&quot;&gt;&lt;tt&gt;tabIcon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabPosition(com.trolltech.qt.gui.QTabWidget.TabPosition arg__1)" doc="/**
&lt;p&gt;Sets the position of the tabs in this tab widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Possible values for this property are described by the &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;&lt;tt&gt;TabPosition&lt;/tt&gt;&lt;/a&gt; enum.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabPosition()&quot;&gt;&lt;tt&gt;tabPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;&lt;tt&gt;TabPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabShape(com.trolltech.qt.gui.QTabWidget.TabShape s)" doc="/**
&lt;p&gt;Sets the shape of the tabs in this tab widget to &lt;tt&gt;s&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabShape()&quot;&gt;&lt;tt&gt;tabShape&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#TabShape-enum&quot;&gt;&lt;tt&gt;TabShape&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabText(int index, java.lang.String arg__2)" doc="/**
&lt;p&gt;Defines a new &lt;tt&gt;arg__2&lt;/tt&gt; for the page at position &lt;tt&gt;index&lt;/tt&gt;'s tab.&lt;/p&gt;
&lt;p&gt;If the provided text contains an ampersand character ('&amp;amp;'), a shortcut is automatically created for it. The character that follows the '&amp;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 &lt;a href=&quot;QShortcut.html#mnemonic&quot;&gt;QShortcut&lt;/a&gt; documentation for details (to display an actual ampersand, use '&amp;amp;&amp;amp;').&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabText(int)&quot;&gt;&lt;tt&gt;tabText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabToolTip(int index, java.lang.String tip)" doc="/**
&lt;p&gt;Sets the tab tool tip for the page at position &lt;tt&gt;index&lt;/tt&gt; to &lt;tt&gt;tip&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabToolTip(int)&quot;&gt;&lt;tt&gt;tabToolTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabWhatsThis(int index, java.lang.String text)" doc="/**
&lt;p&gt;Sets the What's This help text for the page at position &lt;tt&gt;index&lt;/tt&gt; to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabWhatsThis(int)&quot;&gt;&lt;tt&gt;tabWhatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUsesScrollButtons(boolean useButtons)" doc="/**
&lt;p&gt;Sets Whether or not a tab bar should use buttons to scroll tabs when it has many tabs. to &lt;tt&gt;useButtons&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;By default the value is style dependant.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#elideMode()&quot;&gt;&lt;tt&gt;elideMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::usesScrollButtons&lt;/tt&gt;
@see &lt;tt&gt;QStyle::SH_TabBar_PreferNoArrows&lt;/tt&gt; */"/>
    <method name="protected final com.trolltech.qt.gui.QTabBar tabBar()" doc="/**
&lt;p&gt;Returns the current &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabBar(com.trolltech.qt.gui.QTabBar)&quot;&gt;&lt;tt&gt;setTabBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QIcon tabIcon(int index)" doc="/**
&lt;p&gt;Returns the icon for the tab on the page at position &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabIcon(int, com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setTabIcon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTabWidget.TabPosition tabPosition()" doc="/**
&lt;p&gt;Returns the position of the tabs in this tab widget.&lt;/p&gt;
&lt;p&gt;Possible values for this property are described by the &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;&lt;tt&gt;TabPosition&lt;/tt&gt;&lt;/a&gt; enum.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabPosition(com.trolltech.qt.gui.QTabWidget.TabPosition)&quot;&gt;&lt;tt&gt;setTabPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#TabPosition-enum&quot;&gt;&lt;tt&gt;TabPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTabWidget.TabShape tabShape()" doc="/**
&lt;p&gt;Returns the shape of the tabs in this tab widget.&lt;/p&gt;
&lt;p&gt;Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabShape(com.trolltech.qt.gui.QTabWidget.TabShape)&quot;&gt;&lt;tt&gt;setTabShape&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#TabShape-enum&quot;&gt;&lt;tt&gt;TabShape&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String tabText(int index)" doc="/**
&lt;p&gt;Returns the label text for the tab on the page at position &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabText(int, java.lang.String)&quot;&gt;&lt;tt&gt;setTabText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String tabToolTip(int index)" doc="/**
&lt;p&gt;Returns the tab tool tip for the page at position &lt;tt&gt;index&lt;/tt&gt; or an empty string if no tool tip has been set.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabToolTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setTabToolTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String tabWhatsThis(int index)" doc="/**
&lt;p&gt;Returns the What's This help text for the page at position &lt;tt&gt;index&lt;/tt&gt;, or an empty string if no help text has been set.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setTabWhatsThis(int, java.lang.String)&quot;&gt;&lt;tt&gt;setTabWhatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean usesScrollButtons()" doc="/**
&lt;p&gt;Returns Whether or not a tab bar should use buttons to scroll tabs when it has many tabs..&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;By default the value is style dependant.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#setUsesScrollButtons(boolean)&quot;&gt;&lt;tt&gt;setUsesScrollButtons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html#elideMode()&quot;&gt;&lt;tt&gt;elideMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::usesScrollButtons&lt;/tt&gt;
@see &lt;tt&gt;QStyle::SH_TabBar_PreferNoArrows&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget widget(int index)" doc="/**
&lt;p&gt;Returns the tab page at index position &lt;tt&gt;index&lt;/tt&gt; or 0 if the &lt;tt&gt;index&lt;/tt&gt; is out of range.&lt;/p&gt;
 */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/**
&lt;p&gt;Paints the tab widget's tab bar in response to the paint &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void tabInserted(int index)" doc="/**
&lt;p&gt;This virtual handler is called after a new tab was added or inserted at position &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabRemoved(int)&quot;&gt;&lt;tt&gt;tabRemoved&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void tabRemoved(int index)" doc="/**
&lt;p&gt;This virtual handler is called after a tab was removed from position &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTabWidget.html#tabInserted(int)&quot;&gt;&lt;tt&gt;tabInserted&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="TabShape" doc="/**
&lt;p&gt;This enum type defines the shape of the tabs:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Rounded&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The tabs are drawn with a rounded look. This is the default shape.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Triangular&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The tabs are drawn with a triangular look.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="Rounded" doc="/**
&lt;p&gt;The tabs are drawn with a rounded look. This is the default shape.&lt;/p&gt;
 */"/>
        <enum-value name="Triangular" doc="/**
&lt;p&gt;The tabs are drawn with a triangular look.&lt;/p&gt;
 */"/>
</enum>
    <enum name="TabPosition" doc="/**
&lt;p&gt;This enum type defines where &lt;a href=&quot;QTabWidget.html#QTabWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; draws the tab row:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;North&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The tabs are drawn above the pages.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;South&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The tabs are drawn below the pages.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;West&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The tabs are drawn to the left of the pages.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;East&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The tabs are drawn to the right of the pages.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="North" doc="/**
&lt;p&gt;The tabs are drawn above the pages.&lt;/p&gt;
 */"/>
        <enum-value name="South" doc="/**
&lt;p&gt;The tabs are drawn below the pages.&lt;/p&gt;
 */"/>
        <enum-value name="West" doc="/**
&lt;p&gt;The tabs are drawn to the left of the pages.&lt;/p&gt;
 */"/>
        <enum-value name="East" doc="/**
&lt;p&gt;The tabs are drawn to the right of the pages.&lt;/p&gt;
 */"/>
</enum>
</class>