Definition at line 60 of file qtabwidget.h.
#include <qtabwidget.h>

Public Types |
|
| enum | TabPosition { North, South, West, East } |
| enum | TabShape { Rounded, Triangular } |
Public Slots |
|
| void | setCurrentIndex (int index) |
| void | setCurrentWidget (QWidget *widget) |
Signals |
|
| void | currentChanged (int index) |
| void | tabCloseRequested (int index) |
Public Member Functions |
|
| QTabWidget (QWidget *parent=0) | |
| ~QTabWidget () | |
| int | addTab (QWidget *widget, const QString &) |
| int | addTab (QWidget *widget, const QIcon &icon, const QString &label) |
| int | insertTab (int index, QWidget *widget, const QString &) |
| int | insertTab (int index, QWidget *widget, const QIcon &icon, const QString &label) |
| void | removeTab (int index) |
| bool | isTabEnabled (int index) const |
| void | setTabEnabled (int index, bool) |
| QString | tabText (int index) const |
| void | setTabText (int index, const QString &) |
| QIcon | tabIcon (int index) const |
| void | setTabIcon (int index, const QIcon &icon) |
| void | setTabToolTip (int index, const QString &tip) |
| QString | tabToolTip (int index) const |
| void | setTabWhatsThis (int index, const QString &text) |
| QString | tabWhatsThis (int index) const |
| int | currentIndex () const |
| QWidget * | currentWidget () const |
| QWidget * | widget (int index) const |
| int | indexOf (QWidget *widget) const |
| int | count () const |
| TabPosition | tabPosition () const |
| void | setTabPosition (TabPosition) |
| bool | tabsClosable () const |
| void | setTabsClosable (bool closeable) |
| bool | isMovable () const |
| void | setMovable (bool movable) |
| TabShape | tabShape () const |
| void | setTabShape (TabShape s) |
| QSize | sizeHint () const |
| QSize | minimumSizeHint () const |
| void | setCornerWidget (QWidget *w, Qt::Corner corner=Qt::TopRightCorner) |
| QWidget * | cornerWidget (Qt::Corner corner=Qt::TopRightCorner) const |
| Qt::TextElideMode | elideMode () const |
| void | setElideMode (Qt::TextElideMode) |
| QSize | iconSize () const |
| void | setIconSize (const QSize &size) |
| bool | usesScrollButtons () const |
| void | setUsesScrollButtons (bool useButtons) |
| bool | documentMode () const |
| void | setDocumentMode (bool set) |
| void | clear () |
Protected Member Functions |
|
| virtual void | tabInserted (int index) |
| virtual void | tabRemoved (int index) |
| void | showEvent (QShowEvent *) |
| void | resizeEvent (QResizeEvent *) |
| void | keyPressEvent (QKeyEvent *) |
| void | paintEvent (QPaintEvent *) |
| void | setTabBar (QTabBar *) |
| QTabBar * | tabBar () const |
| void | changeEvent (QEvent *) |
| bool | event (QEvent *) |
| void | initStyleOption (QStyleOptionTabWidgetFrame *option) const |
Properties |
|
| TabPosition | tabPosition |
| TabShape | tabShape |
| int | currentIndex |
| int | count |
| QSize | iconSize |
| Qt::TextElideMode | elideMode |
| bool | usesScrollButtons |
| bool | documentMode |
| bool | tabsClosable |
| bool | movable |
Friends |
|
| class | Q3TabDialog |
| enum TabPosition |
Definition at line 112 of file qtabwidget.h.
| enum TabShape |
Definition at line 126 of file qtabwidget.h.
{ Rounded, Triangular };
| QTabWidget | ( | QWidget * | parent = 0 |
) | [explicit] |
| ~QTabWidget | ( | ) |
| void removeTab | ( | int | index | ) |
| bool isTabEnabled | ( | int | index | ) | const |
| void setTabEnabled | ( | int | index, |
| bool | |||
| ) |
| QString tabText | ( | int | index | ) | const |
| void setTabText | ( | int | index, |
| const QString & | |||
| ) |
| QIcon tabIcon | ( | int | index | ) | const |
| void setTabIcon | ( | int | index, |
| const QIcon & | icon | ||
| ) |
| void setTabToolTip | ( | int | index, |
| const QString & | tip | ||
| ) |
| QString tabToolTip | ( | int | index | ) | const |
| void setTabWhatsThis | ( | int | index, |
| const QString & | text | ||
| ) |
| QString tabWhatsThis | ( | int | index | ) | const |
| int currentIndex | ( | ) | const |
| QWidget* currentWidget | ( | ) | const |
| QWidget* widget | ( | int | index | ) | const |
| int indexOf | ( | QWidget * | widget | ) | const |
| int count | ( | ) | const |
| TabPosition tabPosition | ( | ) | const |
| void setTabPosition | ( | TabPosition | ) |
| bool tabsClosable | ( | ) | const |
| void setTabsClosable | ( | bool | closeable | ) |
| bool isMovable | ( | ) | const |
| void setMovable | ( | bool | movable | ) |
| TabShape tabShape | ( | ) | const |
| void setTabShape | ( | TabShape | s | ) |
| void setCornerWidget | ( | QWidget * | w, |
| Qt::Corner | corner =
Qt::TopRightCorner |
||
| ) |
| QWidget* cornerWidget | ( | Qt::Corner | corner =
Qt::TopRightCorner |
) | const |
| Qt::TextElideMode elideMode | ( | ) | const |
| void setElideMode | ( | Qt::TextElideMode | ) |
| QSize iconSize | ( | ) | const |
| void setIconSize | ( | const QSize & | size | ) |
| bool usesScrollButtons | ( | ) | const |
| void setUsesScrollButtons | ( | bool | useButtons | ) |
| bool documentMode | ( | ) | const |
| void setDocumentMode | ( | bool | set | ) |
| void clear | ( | ) |
| void setCurrentIndex | ( | int | index | ) | [slot] |
| void setCurrentWidget | ( | QWidget * | widget | ) | [slot] |
| void currentChanged | ( | int | index | ) | [signal] |
| void tabCloseRequested | ( | int | index | ) | [signal] |
| virtual void tabInserted | ( | int | index | ) | [protected, virtual] |
| virtual void tabRemoved | ( | int | index | ) | [protected, virtual] |
| void showEvent | ( | QShowEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void setTabBar | ( | QTabBar * | ) | [protected] |
| QTabBar* tabBar | ( | ) | const [protected] |
| void initStyleOption | ( | QStyleOptionTabWidgetFrame * | option | ) | const [protected] |
friend class Q3TabDialog
[friend] |
Definition at line 243 of file qtabwidget.h.
TabPosition
tabPosition [read, write] |
Definition at line 64 of file qtabwidget.h.
TabShape
tabShape [read, write] |
Definition at line 65 of file qtabwidget.h.
int currentIndex [read,
write] |
Definition at line 66 of file qtabwidget.h.
int count [read] |
Definition at line 67 of file qtabwidget.h.
QSize iconSize [read,
write] |
Definition at line 68 of file qtabwidget.h.
Qt::TextElideMode
elideMode [read, write] |
Definition at line 69 of file qtabwidget.h.
bool usesScrollButtons [read,
write] |
Definition at line 70 of file qtabwidget.h.
bool documentMode [read,
write] |
Definition at line 71 of file qtabwidget.h.
bool tabsClosable [read,
write] |
Definition at line 72 of file qtabwidget.h.
bool movable [read, write] |
Definition at line 73 of file qtabwidget.h.